JPH07295612A - High-level language sequence instruction program generation part and general sequencer - Google Patents

High-level language sequence instruction program generation part and general sequencer

Info

Publication number
JPH07295612A
JPH07295612A JP6083162A JP8316294A JPH07295612A JP H07295612 A JPH07295612 A JP H07295612A JP 6083162 A JP6083162 A JP 6083162A JP 8316294 A JP8316294 A JP 8316294A JP H07295612 A JPH07295612 A JP H07295612A
Authority
JP
Japan
Prior art keywords
program
sequence
level language
command
storage area
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
JP6083162A
Other languages
Japanese (ja)
Inventor
Shinji Sukesada
伸治 助定
Kozo Wakagi
幸蔵 若木
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.)
Japan Steel Works Ltd
Original Assignee
Japan Steel Works Ltd
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 Japan Steel Works Ltd filed Critical Japan Steel Works Ltd
Priority to JP6083162A priority Critical patent/JPH07295612A/en
Publication of JPH07295612A publication Critical patent/JPH07295612A/en
Pending legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Abstract

PURPOSE:To perform sequence control by automatically generating a high-level language sequence instruction program by utilizing a sequence instruction language instruction program and executing it. CONSTITUTION:The high-level language sequence instruction program generation device translates the sequence instruction language sequence instruction program into the high-level language sequence instruction program by a translation program. The general sequencer 1 reads in input data from an external input equipment GI by an execute-form input driver program 2 and stores it in an input data storage area 3a of a memory 3, and performs processing by an execute-form sequence instruction program 4 while referring to the input data storage area 3a to generate output data and then stores the data in an output data storage area 3b of the memory 3; and an execute-form output driver program 6 refers to the output data storage area 3b and sends the output data to an external output equipment GO. Consequently, the same sequence control can be executed without distinction of vendors and machine kinds.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、高級言語シーケンス
命令プログラム生成装置および汎用シーケンサに関し、
さらに詳しくは、機種依存性の高いシーケンス命令言語
シーケンス命令プログラムから機種依存性の低い高級言
語シーケンス命令プログラムを自動的に生成できる高級
言語シーケンス命令プログラム生成装置およびその高級
言語シーケンス命令プログラムを実行してシーケンス制
御を行なうことが出来る汎用シーケンサに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a high-level language sequence instruction program generator and a general-purpose sequencer,
More specifically, a high-level language sequence instruction program generator capable of automatically generating a high-level language sequence instruction program with low machine dependency from a sequence instruction language sequence instruction program with high machine dependency and its high-level language sequence instruction program are executed. The present invention relates to a general-purpose sequencer capable of performing sequence control.

【0002】[0002]

【従来の技術】従来、シーケンス制御は、シーケンサを
用いる方法と,汎用コンピュータを用いる方法が知られ
ている。シーケンサを用いる方法では、外部入力機器か
らの入力データを読み込むと共に、シーケンス命令言語
で記述されたシーケンス命令言語シーケンス命令プログ
ラムを順にインタープリティングしながら実行して出力
データを生成し、その出力データを外部出力機器へ出力
する。一方、汎用コンピュータを用いる方法では、汎用
コンピュータ用高級言語で記述された高級言語シーケン
ス制御プログラムを作成し、そのシーケンス制御プログ
ラムを実行することで、外部入力機器からの入力データ
を読み込み、処理し、出力データを生成し、その出力デ
ータを外部出力機器へ出力する。
2. Description of the Related Art Conventionally, as sequence control, a method using a sequencer and a method using a general-purpose computer are known. In the method using the sequencer, while reading the input data from the external input device, the sequence command language written in the sequence command language is executed while sequentially interpreting the sequence command program to generate the output data, and the output data is output. Output to external output device. On the other hand, in the method using a general-purpose computer, a high-level language sequence control program written in a high-level language for a general-purpose computer is created, and the sequence control program is executed to read and process input data from an external input device. Generate output data and output the output data to an external output device.

【0003】[0003]

【発明が解決しようとする課題】上記シーケンサを用い
る方法では、シーケンス命令言語の機種依存性が高いた
め、せっかくシーケンス命令言語シーケンス命令プログ
ラムを作成しても、他のベンダーのシーケンサでは実行
できず、プログラムを作り直さなければならない問題点
がある。一方、上記汎用コンピュータを用いる方法で
は、既に作成されているシーケンス命令言語シーケンス
命令プログラムがあっても、初めから高級言語シーケン
ス制御プログラムを作成しなければならない問題点があ
る。また、既に作成されているシーケンス命令言語シー
ケンス命令プログラムを理解して高級言語シーケンス制
御プログラムを作成するため、高級言語シーケンス制御
プログラムの作成に時間がかかる問題点がある。そこ
で、本発明の第1の目的は、既に作成されているシーケ
ンス命令言語シーケンス命令プログラムを利用して互換
性の高い高級言語シーケンス命令プログラムを自動生成
できる高級言語シーケンス命令プログラム生成装置を提
供することにある。また、本発明の第2の目的は、上記
高級言語シーケンス命令プログラムを実行してシーケン
ス制御を行なうことが出来る汎用シーケンサを提供する
ことにある。
In the method using the above sequencer, since the sequence instruction language is highly model dependent, even if the sequence instruction language sequence instruction program is created, it cannot be executed by the sequencer of another vendor. There is a problem that the program has to be recreated. On the other hand, in the method using the general-purpose computer, there is a problem that a high-level language sequence control program has to be created from the beginning even if there is a sequence command language sequence command program already created. In addition, since a high-level language sequence control program is created by understanding a sequence command language sequence command program that has already been created, there is a problem that it takes time to create a high-level language sequence control program. Therefore, a first object of the present invention is to provide a high-level language sequence command program generation device capable of automatically generating a high-compatible high-level language sequence command program by using a sequence command language sequence command program that has already been created. It is in. A second object of the present invention is to provide a general-purpose sequencer capable of executing the high-level language sequence instruction program to perform sequence control.

【0004】[0004]

【課題を解決するための手段】第1の観点では、本発明
は、シーケンス命令言語で記述されたシーケンス命令言
語シーケンス命令プログラムを解釈して汎用コンピュー
タ用高級言語で記述された高級言語シーケンス命令プロ
グラム(9)に翻訳する翻訳手段(8)を具備したこと
を特徴とする高級言語シーケンス命令プログラム生成装
置(30)を提供する。上記構成の高級言語シーケンス
命令プログラム生成装置(30)において、前記翻訳手
段(8)は、シーケンス命令言語で記述されたシーケン
ス命令言語シーケンス命令プログラム(7)を読み込ん
でコマンドを解釈するコマンド解釈手段(T3)と、そ
のコマンド解釈手段(T3)で解釈されたコマンドに属
する引数を解釈する引数解釈手段(T4)と、解釈した
コマンドおよび引数に基づいて高級言語シーケンス命令
を生成する高級言語シーケンス命令生成手段(T5)と
を有する構成であることが好ましい。
SUMMARY OF THE INVENTION In a first aspect, the present invention is a high-level language sequence instruction program written in a high-level language for a general-purpose computer by interpreting a sequence instruction language sequence instruction program written in a sequence instruction language. There is provided a high-level language sequence command program generation device (30) comprising a translation means (8) for translating into (9). In the high-level language sequence command program generating device (30) having the above configuration, the translating means (8) reads the sequence command language sequence command program (7) described in the sequence command language and interprets the command ( T3), an argument interpreting means (T4) for interpreting an argument belonging to the command interpreted by the command interpreting means (T3), and a high-level language sequence instruction generation for generating a high-level language sequence instruction based on the interpreted command and argument. It is preferable that the structure includes a means (T5).

【0005】第2の観点では、本発明は、外部入力機器
(GI)からの入力データを読み込んでメモリ(3)の
入力データ記憶領域(3a)に格納する入力ドライバ手
段(2)と、上記高級言語シーケンス命令プログラム生
成装置(30)により生成された高級言語シーケンス命
令プログラム(9)を実質的に実行することにより前記
入力データ記憶領域(3a)を参照し処理し出力データ
を生成しメモリ(3)の出力データ記憶領域(3b)に
格納するシーケンス命令実行手段(4)と、前記出力デ
ータ記憶領域(3b)を参照し外部出力機器(GO)へ
出力データを出力する出力ドライバ手段(6)とを具備
したことを特徴とする汎用シーケンサ(1)を提供す
る。なお、高級言語シーケンス命令プログラム(9)を
「実質的に実行する」とは、高級言語シーケンス命令プ
ログラムをコンパイルして作成された実行形式シーケン
ス命令プログラム(4)を実行するか、又は、高級言語
シーケンス命令プログラム(9)を順にインタプリーテ
ィングしながら実行することをいう。
In a second aspect, the present invention relates to an input driver means (2) for reading input data from an external input device (GI) and storing it in an input data storage area (3a) of a memory (3), and By executing the high-level language sequence command program (9) generated by the high-level language sequence command program generation device (30), the input data storage area (3a) is referred to and processed to generate output data and a memory ( Sequence command executing means (4) for storing in the output data storage area (3b) of 3) and output driver means (6) for outputting output data to an external output device (GO) by referring to the output data storage area (3b). ) Is provided, the general-purpose sequencer (1) is provided. Note that "substantially executing" the high-level language sequence instruction program (9) means executing the execution-type sequence instruction program (4) created by compiling the high-level language sequence instruction program or executing the high-level language This means executing the sequence command program (9) while interpreting it in order.

【0006】上記構成の汎用シーケンサ(1)におい
て、前記シーケンス命令実行手段(4)は、入力データ
と出力データとから外部入力機器(GI)および外部出
力機器(GO)の状態情報を生成し、メモリ(3)の状
態情報記憶領域(3c)に格納することが好ましい。さ
らに、上記構成の汎用シーケンサ(1)において、ラダ
ー図を表示すると共に前記メモリ(3)の状態情報記憶
領域(3c)を参照してラダー図上で外部入力機器(G
I)および外部出力機器(GO)の状態を表示するラダ
ー図表示手段(11)をさらに具備するのが好ましい。
In the general-purpose sequencer (1) having the above structure, the sequence command executing means (4) generates state information of the external input device (GI) and the external output device (GO) from the input data and the output data, It is preferable to store in the state information storage area (3c) of the memory (3). Further, in the general-purpose sequencer (1) having the above configuration, the ladder diagram is displayed and the external information input device (G) is displayed on the ladder diagram by referring to the state information storage area (3c) of the memory (3).
It is preferable to further include a ladder diagram display means (11) for displaying the states of I) and the external output device (GO).

【0007】[0007]

【作用】上記第1の観点による高級言語シーケンス命令
プログラム生成装置(30)では、翻訳手段(8)が、
シーケンス命令言語で記述されたシーケンス命令言語シ
ーケンス命令プログラム(7)を汎用コンピュータ用高
級言語で記述された高級言語シーケンス命令プログラム
(9)に翻訳する。このため、既に作成されているシー
ケンス命令言語シーケンス命令プログラム(7)を利用
して機種依存性の低い高級言語シーケンス命令プログラ
ムを効率良く自動生成できる。また、この高級言語シー
ケンス命令プログラムにより、ベンダーや機種を問わ
ず、同じシーケンス制御を実行し易くなる。
In the high level language sequence command program generating device (30) according to the first aspect, the translating means (8) includes:
A sequence command language sequence command program (7) written in the sequence command language is translated into a high-level language sequence command program (9) written in a high-level language for general-purpose computer. Therefore, it is possible to efficiently and automatically generate a high-level language sequence instruction program with low machine dependency by using the sequence instruction language sequence instruction program (7) already created. Further, this high-level language sequence instruction program facilitates execution of the same sequence control regardless of vendor or model.

【0008】上記第2の観点による汎用シーケンサ
(1)では、入力ドライバ手段(2)が、外部入力機器
(GI)からの入力データを読み込んでメモリ(3)の
入力データ記憶領域(3a)に格納する。また、シーケ
ンス命令実行手段(4)が、前記入力データ記憶領域
(3a)を参照しながら高級言語シーケンス命令プログ
ラム(9)を実質的に実行し、出力データを生成し、メ
モリ(3)の出力データ記憶領域(3b)に格納する。
また、出力ドライバ手段(6)が、前記出力データ記憶
領域(3b)を参照し、外部出力機器(GO)へ出力デ
ータを出力する。このため、ベンダーや機種を問わず、
同じシーケンス制御を実行できる。
In the general-purpose sequencer (1) according to the second aspect, the input driver means (2) reads the input data from the external input device (GI) and stores it in the input data storage area (3a) of the memory (3). Store. Further, the sequence command executing means (4) substantially executes the high-level language sequence command program (9) with reference to the input data storage area (3a), generates output data, and outputs the output of the memory (3). The data is stored in the data storage area (3b).
The output driver means (6) outputs the output data to the external output device (GO) by referring to the output data storage area (3b). Therefore, regardless of vendor or model
The same sequence control can be executed.

【0009】なお、前記シーケンス命令実行手段(4)
が、入力データと出力データとから外部入力機器(G
I)および外部出力機器(GO)の状態情報を生成し、
メモリ(3)の状態情報記憶領域(3c)に格納すれ
ば、シーケンス制御のデバッグや故障診断などを行ない
易くなる。また、ラダー図表示手段(11)により、ラ
ダー図を表示すると共に、前記メモリ(3)の状態情報
記憶領域(3c)を参照してラダー図上で外部入力機器
(GI)および外部出力機器(GO)の状態を表示すれ
ば、シーケンス制御の状態を視認することができ、デバ
ッグや故障診断などをより行ない易くなる。
The sequence instruction executing means (4)
However, the external input device (G
I) and external output device (GO) status information,
Storing in the state information storage area (3c) of the memory (3) facilitates debugging of sequence control and failure diagnosis. Further, the ladder diagram is displayed by the ladder diagram display means (11), and the external information input device (GI) and the external output device (GI) are displayed on the ladder diagram by referring to the state information storage area (3c) of the memory (3). By displaying the state of GO), the state of sequence control can be visually recognized, and debugging and failure diagnosis can be performed more easily.

【0010】[0010]

【実施例】以下、図に示す実施例により本発明をさらに
詳細に説明する。なお、これにより本発明が限定される
ものではない。図1は、本発明の高級言語シーケンス命
令プログラム生成装置の一実施例のブロック図である。
この高級言語シーケンス命令プログラム生成装置30
は、パソコン(パーソナル・コンピュータ)31と、C
RT32と、キーボード33と、FDD(フロッピィデ
ィスク装置)34と、HD(ハードディスク装置)35
とを具備している。前記パソコン31は、CPU5とメ
モリ3を具備している。前記HD35には、翻訳プログ
ラム8とコンパイラ10が格納されている。
EXAMPLES The present invention will be described in more detail with reference to the examples shown in the drawings. The present invention is not limited to this. FIG. 1 is a block diagram of an embodiment of a high-level language sequence instruction program generation device of the present invention.
This high-level language sequence command program generation device 30
Is a personal computer (personal computer) 31 and C
RT 32, keyboard 33, FDD (floppy disk device) 34, HD (hard disk device) 35
It has and. The personal computer 31 includes a CPU 5 and a memory 3. A translation program 8 and a compiler 10 are stored in the HD 35.

【0011】図2に示すように、この高級言語シーケン
ス命令プログラム生成装置30は、翻訳プログラム8を
実行することにより、シーケンス命令言語で記述された
シーケンス命令言語シーケンス命令プログラム7を解釈
し、汎用コンピュータ用高級言語で記述された高級言語
シーケンス命令プログラム9に翻訳する。さらに、コン
パイラ10を実行することにより、高級言語シーケンス
命令プログラム9をコンパイルして、実行形式シーケン
ス命令プログラム4を作成する。なお、高級言語シーケ
ンス命令プログラム9をインタプリタで実行する場合
は、実行形式シーケンス命令プログラム4を作成する必
要はなく、コンパイラ10は不要である。
As shown in FIG. 2, the high-level language sequence command program generation device 30 executes the translation program 8 to interpret the sequence command language sequence command program 7 described in the sequence command language, and to use a general-purpose computer. It is translated into a high-level language sequence instruction program 9 written in a high-level language for use. Further, by executing the compiler 10, the high-level language sequence instruction program 9 is compiled, and the execution format sequence instruction program 4 is created. When the high-level language sequence instruction program 9 is executed by the interpreter, it is not necessary to create the execution format sequence instruction program 4, and the compiler 10 is not necessary.

【0012】図3は、高級言語シーケンス命令プログラ
ム生成装置30の動作を示すフロー図である。ステップ
T1では、既に作成されているシーケンス命令言語シー
ケンス命令プログラム7をFDD34から読み込む。な
お、エディタなどを利用して作成することも可能であ
る。図4に、シーケンス命令言語シーケンス命令プログ
ラム7を例示する。ステップT2では、シーケンス命令
言語シーケンス命令プログラム7をトークンで分離し、
命令を一つずつ順に取り出す。ステップT3では、一つ
の命令のコマンドを解釈する。ここで、コマンドは、
“LD”“AND”“OUT”などである。ステップT
4では、一つの命令の引数を解釈する。ここで、引数
は、“X[0]”“X[6]”“Y[1]”などであ
る。ステップT5では、解釈結果に基づいて高級言語シ
ーケンス命令を作成する。ここで、高級言語は、C言
語,C++言語,BASIC言語などである。ステップ
T6では、シーケンス命令言語シーケンス命令プログラ
ム7の全ての命令を翻訳したかをチェックする。未翻訳
の命令が残っていれば前記ステップT2に戻る。全命令
を翻訳したならステップT7に進む。ステップT7で
は、作成した高級言語シーケンス命令を整理して、高級
言語シーケンス命令プログラム9を作成する。図5に、
高級言語シーケンス命令プログラム9を例示する。
FIG. 3 is a flow chart showing the operation of the high-level language sequence command program generation device 30. In step T1, the sequence command language sequence command program 7 already created is read from the FDD 34. It is also possible to create it using an editor or the like. FIG. 4 illustrates the sequence command language sequence command program 7. In step T2, the sequence command language sequence command program 7 is separated by tokens,
Take out the commands one by one. At step T3, the command of one instruction is interpreted. Where the command is
For example, "LD", "AND", "OUT". Step T
At 4, the argument of one instruction is interpreted. Here, the argument is “X [0]”, “X [6]”, “Y [1]”, or the like. At step T5, a high-level language sequence command is created based on the interpretation result. Here, the high-level language is C language, C ++ language, BASIC language, or the like. In step T6, it is checked whether all the commands of the sequence command language sequence command program 7 have been translated. If there are untranslated instructions, the process returns to step T2. If all commands have been translated, the process proceeds to step T7. In step T7, the created high-level language sequence command is organized to create a high-level language sequence command program 9. In Figure 5,
A high-level language sequence command program 9 is illustrated.

【0013】上記高級言語シーケンス命令プログラム生
成装置30によれば、既に作成されているシーケンス命
令言語シーケンス命令プログラム7を利用して高級言語
シーケンス命令プログラム9を効率良く自動生成でき
る。また、高級言語シーケンス命令プログラム9によ
り、ベンダーや機種を問わず、同じシーケンス制御を実
行し易くなる。なお、上記翻訳処理の過程をCRT32
に表示して、プログラマに知らせてもよい。
According to the high-level language sequence command program generation device 30, the high-level language sequence command program 9 can be efficiently and automatically generated by utilizing the sequence command language sequence command program 7 already created. Further, the high-level language sequence command program 9 facilitates execution of the same sequence control regardless of vendor or model. In addition, the process of the above-mentioned translation processing is performed by the CRT 32.
May be displayed on the screen to notify the programmer.

【0014】図6は、本発明の汎用シーケンサの一実施
例のブロック図である。この汎用シーケンサ1は、パソ
コン31と、CRT32と、キーボード33と、FDD
(フロッピィディスク装置)34と、HD(ハードディ
スク装置)35と、A/D変換器36と、D/A変換器
37とを具備している。前記パソコン31は、CPU5
とメモリ3とを具備している。前記CPU5は、マルチ
タスク処理が可能なものである。前記メモリ3には、入
力データ領域3aと出力データ記憶領域3bと状態情報
記憶領域3cとが設けられている。前記HD35には、
実行形式シーケンス命令プログラム4と、実行形式入力
ドライバプログラム2と、実行形式出力ドライバプログ
ラム6と、実行形式ラダー図表示プログラム11とが格
納されている。前記実行形式入力ドライバプログラム2
と実行形式出力ドライバプログラム6と実行形式ラダー
図表示プログラム11とは、前記実行形式シーケンス命
令プログラム4と同様にして生成されたものである。前
記A/D変換器36には、接点,スイッチ,タイマ,計
器などの外部入力機器GIが接続されている。前記D/
A変換器37には、リレー,ランプ,モータ,表示器な
どの外部出力機器GOが接続されている。
FIG. 6 is a block diagram of an embodiment of the general-purpose sequencer of the present invention. This general-purpose sequencer 1 includes a personal computer 31, a CRT 32, a keyboard 33, an FDD.
A (floppy disk device) 34, a HD (hard disk device) 35, an A / D converter 36, and a D / A converter 37 are provided. The personal computer 31 has a CPU 5
And a memory 3. The CPU 5 is capable of multitask processing. The memory 3 is provided with an input data area 3a, an output data storage area 3b and a status information storage area 3c. In the HD35,
An execution format sequence command program 4, an execution format input driver program 2, an execution format output driver program 6, and an execution format ladder diagram display program 11 are stored. Execution format input driver program 2
The execution format output driver program 6 and the execution format ladder diagram display program 11 are generated in the same manner as the execution format instruction program 4. External input devices GI such as contacts, switches, timers and meters are connected to the A / D converter 36. D /
External output devices GO such as a relay, a lamp, a motor, and a display are connected to the A converter 37.

【0015】図7は、汎用シーケンサ1の動作を示すフ
ロー図である。CPU5により、実行形式シーケンス命
令プログラム4と、実行形式入力ドライバプログラム2
と、実行形式出力ドライバプログラム6と、実行形式ラ
ダー図表示プログラム11とが並列実行されている。
FIG. 7 is a flow chart showing the operation of the general-purpose sequencer 1. The execution sequence instruction program 4 and the execution input driver program 2 are executed by the CPU 5.
The execution format output driver program 6 and the execution format ladder diagram display program 11 are executed in parallel.

【0016】ステップU1では、実行形式入力ドライバ
プログラム2は、A/Dコンバータ36を介して、外部
入力機器GIからの入力データを読み込み、メモリ3の
入力データ記憶領域3aに格納する。
In step U1, the executable input driver program 2 reads the input data from the external input device GI via the A / D converter 36 and stores it in the input data storage area 3a of the memory 3.

【0017】ステップU2では、実行形式シーケンス命
令プログラム4は、入力データ記憶領域3aの入力デー
タを参照し、処理し、出力データを生成し、その出力デ
ータをメモリ3の出力データ記憶領域3bに格納する。
また、入力データと出力データとから外部入力機器GI
および外部出力機器GOの状態情報を生成し、メモリ3
の状態情報記憶領域3cに格納する。ステップU3で
は、実行形式シーケンス命令プログラム4の終了まで前
記ステップU2を実行する。
In step U2, the execution format sequence command program 4 refers to the input data in the input data storage area 3a, processes it, generates output data, and stores the output data in the output data storage area 3b of the memory 3. To do.
In addition, an external input device GI is input from the input data and the output data.
And the state information of the external output device GO is generated, and the memory 3
It is stored in the state information storage area 3c. In step U3, the step U2 is executed until the execution-type sequence instruction program 4 ends.

【0018】ステップU4では、実行形式出力ドライバ
プログラム6は、メモリ3の出力データ記憶領域3bか
ら出力データを読み込み、D/Aコンバータ37を介し
て、外部出力機器GOへ出力格納する。
At step U4, the execution-format output driver program 6 reads the output data from the output data storage area 3b of the memory 3, outputs it to the external output device GO via the D / A converter 37, and stores it.

【0019】ステップU5では、実行形式ラダー図表示
プログラム11は、ラダー図をCRT32に表示すると
共に、前記状態情報記憶領域3cを参照してラダー図上
で外部入力機器GIおよび外部出力機器GOの状態を表
示する。例えば、図8に示すように、ラダー図Lを表示
し、作動/不作動の要素を識別可能な表示態様にする。
At step U5, the execution format ladder diagram display program 11 displays the ladder diagram on the CRT 32 and refers to the state information storage area 3c to show the states of the external input device GI and the external output device GO on the ladder diagram. Is displayed. For example, as shown in FIG. 8, a ladder diagram L is displayed so that activated / non-activated elements can be identified.

【0020】上記汎用シーケンサ1によれば、機種依存
性の低い高級言語シーケンス命令プログラム9を実行で
きるので、ベンダーや機種を問わず、同じシーケンス制
御を実行できる。また、外部入力機器GIおよび外部出
力機器GOの状態情報を表示するので、シーケンス制御
の状態を視認することができ、シーケンス制御のデバッ
グや故障診断などを行ない易くなる。さらに、パソコン
31を使用しているので、故障診断プログラムを組み込
んだり、エキスパートシステムを構築することも容易に
行なえる。また、シーケンス命令プログラムと、入力ド
ライバプログラムや出力ドライバプログラムとを別個に
作成できるので、外部入力機器GIや外部出力機器GO
の変更にも簡単に対応することが出来る。
Since the general-purpose sequencer 1 can execute the high-level language sequence instruction program 9 having low model dependency, the same sequence control can be executed regardless of vendor or model. Further, since the state information of the external input device GI and the external output device GO is displayed, the state of sequence control can be visually recognized, and the sequence control can be debugged and a failure diagnosis can be easily performed. Further, since the personal computer 31 is used, it is easy to incorporate a failure diagnosis program and build an expert system. In addition, since the sequence command program and the input driver program and the output driver program can be created separately, the external input device GI and the external output device GO.
You can easily respond to changes in.

【0021】なお、上記実施例では、CPU5により、
実行形式シーケンス命令プログラム4と、実行形式入力
ドライバプログラム2と、実行形式出力ドライバプログ
ラム6と、実行形式ラダー図表示プログラム11とを並
列実行したが、これらのプログラムを1つのプログラム
に統合して実行してもよい。
In the above embodiment, the CPU 5 causes
The execution format sequence command program 4, the execution format input driver program 2, the execution format output driver program 6, and the execution format ladder diagram display program 11 were executed in parallel. These programs were integrated into one program and executed. You may.

【0022】[0022]

【発明の効果】本発明の高級言語シーケンス命令プログ
ラム生成装置および汎用シーケンサによれば、別個に作
成されたシーケンス命令言語シーケンス命令プログラム
を利用して高級言語シーケンス命令プログラムを効率良
く自動生成できる。また、ベンダーや機種を問わず、同
じシーケンス制御を実行することが出来る。
According to the high-level language sequence instruction program generation device and the general-purpose sequencer of the present invention, the high-level language sequence instruction program can be efficiently and automatically generated by utilizing the separately created sequence instruction language sequence instruction program. In addition, the same sequence control can be executed regardless of vendor or model.

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

【図1】本発明の高級言語シーケンス命令プログラム生
成装置の一実施例のブロック図である。
FIG. 1 is a block diagram of an embodiment of a high-level language sequence instruction program generation device of the present invention.

【図2】プログラムの翻訳処理の説明図である。FIG. 2 is an explanatory diagram of a program translation process.

【図3】図1の高級言語シーケンス命令プログラム生成
装置の動作を示すフロー図である。
FIG. 3 is a flowchart showing an operation of the high-level language sequence instruction program generation device of FIG.

【図4】シーケンス命令言語シーケンス命令プログラム
の例示図である。
FIG. 4 is a view showing an example of a sequence command language sequence command program.

【図5】高級言語シーケンス命令プログラムの例示図で
ある。
FIG. 5 is a view showing an example of a high-level language sequence command program.

【図6】本発明の汎用シーケンサの一実施例のブロック
図である。
FIG. 6 is a block diagram of an embodiment of a general-purpose sequencer of the present invention.

【図7】図6の汎用シーケンサの動作を示すフロー図で
ある。
7 is a flowchart showing the operation of the general-purpose sequencer shown in FIG.

【図8】ラダー図表示の例示図である。FIG. 8 is an exemplary view of a ladder diagram display.

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

1 汎用シーケンサ 2 実行形式入力ドライバプログラム 3 メモリ 3a 入力データ記憶領域 3b 出力データ記憶領域 3c 状態情報記憶領域 4 実行形式シーケンス命令プログラム 5 CPU 6 実行形式出力ドライバプログラム 7 シーケンス命令言語シーケンス命令プログラム 8 翻訳プログラム 9 高級言語シーケンス命令プログラム 10 コンパイラ 11 実行形式ラダー図表示プログラム 31 パソコン 32 CRT 34 FDD 35 HD 36 A/D変換器 37 D/A変換器 GI 外部入力機器 GO 外部出力機器 L ラダー図 1 general-purpose sequencer 2 execution format input driver program 3 memory 3a input data storage area 3b output data storage area 3c status information storage area 4 execution format sequence instruction program 5 CPU 6 execution format output driver program 7 sequence instruction language sequence instruction program 8 translation program 9 High-level language sequence command program 10 Compiler 11 Execution form ladder diagram display program 31 Personal computer 32 CRT 34 FDD 35 HD 36 A / D converter 37 D / A converter GI External input device GO External output device L ladder diagram

フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G05B 23/02 301 L 7531−3H G05B 19/05 D Continuation of front page (51) Int.Cl. 6 Identification number Office reference number FI technical display location G05B 23/02 301 L 7531-3H G05B 19/05 D

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 シーケンス命令言語で記述されたシーケ
ンス命令言語シーケンス命令プログラムを解釈して汎用
コンピュータ用高級言語で記述された高級言語シーケン
ス命令プログラムに翻訳する翻訳手段を具備したことを
特徴とする高級言語シーケンス命令プログラム生成装
置。
1. A high-level program characterized by comprising translation means for interpreting a sequence command language sequence command program written in a sequence command language and translating it into a high-level language sequence command program written in a high-level language for a general-purpose computer. Language sequence instruction program generator.
【請求項2】 請求項1に記載の高級言語シーケンス命
令プログラム生成装置において、前記翻訳手段は、シー
ケンス命令言語で記述されたシーケンス命令言語シーケ
ンス命令プログラムを読み込んでコマンドを解釈するコ
マンド解釈手段と、そのコマンド解釈手段で解釈された
コマンドに属する引数を解釈する引数解釈手段と、解釈
したコマンドおよび引数に基づいて高級言語シーケンス
命令を生成する高級言語シーケンス命令生成手段とを有
することを特徴とする高級言語シーケンス命令プログラ
ム生成装置。
2. The high-level language sequence command program generating device according to claim 1, wherein the translating unit reads a sequence command language sequence command program described in a sequence command language and interprets a command, A high-level language characterized by having an argument interpreting means for interpreting an argument belonging to a command interpreted by the command interpreting means, and a high-level language sequence instruction generating means for generating a high-level language sequence instruction based on the interpreted command and argument. Language sequence instruction program generator.
【請求項3】 外部入力機器からの入力データを読み込
んでメモリの入力データ記憶領域に格納する入力ドライ
バ手段と、請求項1または請求項2に記載の高級言語シ
ーケンス命令プログラム生成装置により生成された高級
言語シーケンス命令プログラムを実質的に実行すること
により前記入力データ記憶領域を参照しながら処理し出
力データを生成してメモリの出力データ記憶領域に格納
するシーケンス命令実行手段と、前記出力データ記憶領
域を参照し外部出力機器へ出力データを出力する出力ド
ライバ手段とを具備したことを特徴とする汎用シーケン
サ。
3. An input driver means for reading input data from an external input device and storing it in an input data storage area of a memory, and the high-level language sequence command program generating device according to claim 1 or 2. A sequence command executing means for performing processing while referring to the input data storage area by substantially executing a high-level language sequence command program to generate output data and storing the output data in the output data storage area of the memory; and the output data storage area. , A general-purpose sequencer comprising: output driver means for outputting output data to an external output device with reference to FIG.
【請求項4】 請求項3に記載の汎用シーケンサにおい
て、前記シーケンス命令実行手段は、前記高級言語シー
ケンス命令プログラムをコンパイルして作成された実行
形式シーケンス命令プログラムを実行することを特徴と
する汎用シーケンサ。
4. The general-purpose sequencer according to claim 3, wherein the sequence instruction execution means executes an execution-type sequence instruction program created by compiling the high-level language sequence instruction program. .
【請求項5】 請求項3に記載の汎用シーケンサにおい
て、前記シーケンス命令実行手段は、前記高級言語シー
ケンス命令プログラムを順にインタプリーティングしな
がら実行することを特徴とする汎用シーケンサ。
5. The general-purpose sequencer according to claim 3, wherein the sequence instruction executing means executes the high-level language sequence instruction program while interpreting them in order.
【請求項6】 請求項3から請求項5のいずれかに記載
の汎用シーケンサにおいて、前記シーケンス命令実行手
段は、入力データと出力データとから外部入力機器およ
び外部出力機器の状態情報を生成し、メモリの状態情報
記憶領域に格納することを特徴とする汎用シーケンサ。
6. The general-purpose sequencer according to any one of claims 3 to 5, wherein the sequence command execution means generates status information of an external input device and an external output device from input data and output data, A general-purpose sequencer characterized by being stored in a state information storage area of a memory.
【請求項7】 請求項6に記載の汎用シーケンサにおい
て、ラダー図を表示すると共に前記メモリの状態情報記
憶領域を参照してラダー図上で外部入力機器および外部
出力機器の状態を表示するラダー図表示手段をさらに具
備したことを特徴とする汎用シーケンサ。
7. The ladder diagram for displaying the state of an external input device and an external output device on the ladder diagram in the general-purpose sequencer according to claim 6, displaying the ladder diagram and referring to the state information storage area of the memory. A general-purpose sequencer further comprising display means.
JP6083162A 1994-04-21 1994-04-21 High-level language sequence instruction program generation part and general sequencer Pending JPH07295612A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6083162A JPH07295612A (en) 1994-04-21 1994-04-21 High-level language sequence instruction program generation part and general sequencer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6083162A JPH07295612A (en) 1994-04-21 1994-04-21 High-level language sequence instruction program generation part and general sequencer

Publications (1)

Publication Number Publication Date
JPH07295612A true JPH07295612A (en) 1995-11-10

Family

ID=13794568

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6083162A Pending JPH07295612A (en) 1994-04-21 1994-04-21 High-level language sequence instruction program generation part and general sequencer

Country Status (1)

Country Link
JP (1) JPH07295612A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7203931B2 (en) 2000-09-22 2007-04-10 Mitsubishi Denki Kabushiki Kaisha Programmable controller, and control-program-development supporting apparatus
JP2012053676A (en) * 2010-09-01 2012-03-15 Tokyo Denki Gijutsu Kogyo Kk Program conversion processing apparatus, method and program, and recording medium
JPWO2018042520A1 (en) * 2016-08-30 2018-12-06 三菱電機株式会社 Program editing apparatus, program editing method, and program editing program
KR20200050885A (en) 2018-11-02 2020-05-12 요코가와 덴키 가부시키가이샤 Engineering apparatus, control method of engineering apparatus, and program
KR20200050886A (en) 2018-11-02 2020-05-12 요코가와 덴키 가부시키가이샤 Engineering apparatus, control method of engineering apparatus, and program

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7203931B2 (en) 2000-09-22 2007-04-10 Mitsubishi Denki Kabushiki Kaisha Programmable controller, and control-program-development supporting apparatus
JP2012053676A (en) * 2010-09-01 2012-03-15 Tokyo Denki Gijutsu Kogyo Kk Program conversion processing apparatus, method and program, and recording medium
JPWO2018042520A1 (en) * 2016-08-30 2018-12-06 三菱電機株式会社 Program editing apparatus, program editing method, and program editing program
KR20190011810A (en) 2016-08-30 2019-02-07 미쓰비시덴키 가부시키가이샤 A program editing apparatus, a program editing method, and a program editing program stored in a storage medium
DE112016007069T5 (en) 2016-08-30 2019-03-28 Mitsubishi Electric Corporation PROGRAM EDITING DEVICE, PROGRAM EDITING PROCEDURE AND PROGRAM EDITING PROGRAM
US10990073B2 (en) 2016-08-30 2021-04-27 Mitsubishi Electric Corporation Program editing device, program editing method, and computer readable medium
KR20200050885A (en) 2018-11-02 2020-05-12 요코가와 덴키 가부시키가이샤 Engineering apparatus, control method of engineering apparatus, and program
KR20200050886A (en) 2018-11-02 2020-05-12 요코가와 덴키 가부시키가이샤 Engineering apparatus, control method of engineering apparatus, and program
US11132184B2 (en) 2018-11-02 2021-09-28 Yokogawa Electric Corporation Engineering apparatus, control method, and program for executing a control application
US11215960B2 (en) 2018-11-02 2022-01-04 Yokogawa Electric Corporation Engineering apparatus, control method of engineering apparatus, and program for generating executable code for controlling target hardware

Similar Documents

Publication Publication Date Title
US5317688A (en) Software agent used to provide instruction to a user for a plurality of computer applications
US5557774A (en) Method for making test environmental programs
JP3041222B2 (en) Source code creation system and method
US5961610A (en) Systems, methods and apparatus for generating and controlling display of medical images
JPH0844547A (en) Visualization of object-oriented software
US5950002A (en) Learn mode script generation in a medical imaging system
JPH11194957A (en) Debug supporting device, parallel execution information generation device and recording medium for recording program applied to the same
US6467082B1 (en) Methods and apparatus for simulating external linkage points and control transfers in source translation systems
JPH08202545A (en) Object-oriented system and method for generation of target language code
JPH07295859A (en) Determination of dynamic property of program
KR20000028921A (en) Program production system for semiconductor tester
US6874148B1 (en) System and method for exporting a graphical program to a shared library
JPS6116100B2 (en)
JPH07295612A (en) High-level language sequence instruction program generation part and general sequencer
US8930909B1 (en) Debugging using presentation layer representations of objects
JP2001195275A (en) Program execution system for semiconductor testing device
JP2002182709A (en) Programming device for programmable controller
JPH06242941A (en) Interactive processing system
Viskari et al. A generic FSM interpreter for embedded systems
JP2006285584A (en) Program code generation device, program code generation method, and computer program
JPH05127880A (en) Support device for development of electronic control program
JP3130421B2 (en) Program analysis method and apparatus
KR100289061B1 (en) Manager system for simulation tool of lotos
JPH06231003A (en) Debugger for feasible file
Allworth et al. Design and Development Tools