Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3124131B2 - Tabular circuit description device and method, and functional language conversion device and method - Google Patents
[go: Go Back, main page]

JP3124131B2 - Tabular circuit description device and method, and functional language conversion device and method - Google Patents

Tabular circuit description device and method, and functional language conversion device and method

Info

Publication number
JP3124131B2
JP3124131B2 JP04297329A JP29732992A JP3124131B2 JP 3124131 B2 JP3124131 B2 JP 3124131B2 JP 04297329 A JP04297329 A JP 04297329A JP 29732992 A JP29732992 A JP 29732992A JP 3124131 B2 JP3124131 B2 JP 3124131B2
Authority
JP
Japan
Prior art keywords
input
output
description
condition
language
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
JP04297329A
Other languages
Japanese (ja)
Other versions
JPH06149311A (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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP04297329A priority Critical patent/JP3124131B2/en
Publication of JPH06149311A publication Critical patent/JPH06149311A/en
Application granted granted Critical
Publication of JP3124131B2 publication Critical patent/JP3124131B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、PC上で動作する表形
式の回路記述、及びその記述を言語変換する関数型言語
変換装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a tabular circuit description that operates on a personal computer and a functional language converter that converts the description into a language.

【0002】[0002]

【従来の技術】従来より、現場においては、制御すべき
様々な情報例えばベルトコンベアの出口を通過した製品
が所定数量に達した等の物量的情報、或いは裁断機が稼
動中であるときに危険域に移動物を検出した等の論理的
情報等がある。それら検出された様々な情報に応じて所
定の出力制御(シーケンス制御)を行うものとしてプロ
グラマブルコントローラ(以下、PCと称する)が広く
用いられている。
2. Description of the Related Art Conventionally, various kinds of information to be controlled at a site, for example, physical information such as the number of products passing through an outlet of a belt conveyor reaching a predetermined quantity, or dangerous when a cutting machine is in operation. There is logical information such as detection of a moving object in the area. Programmable controllers (hereinafter, referred to as PCs) are widely used to perform predetermined output control (sequence control) according to the detected various information.

【0003】このPCのプログラミング方法は、通常の
コンピュータプログラミングとは全く異なる記述形式を
伴う。一般には、例えば図27示すPC化以前から現場
で用いられていたa接点(常時開スイッチ)A,B,
D,b接点(常時閉スイッチ)Eや、コイルC,F等の
シンボルマークによるリレー回路の展開接続図(ラダー
図)が用いられる。或いはまた、例えば図28に示す条
件表が用いられる場合もある。
[0003] This method of programming a PC involves a completely different description format from ordinary computer programming. In general, for example, a-contacts (normally open switches) A, B,
A development connection diagram (ladder diagram) of a relay circuit using symbol marks such as D and b contacts (normally closed switches) E and coils C and F is used. Alternatively, for example, a condition table shown in FIG. 28 may be used.

【0004】図27と図28は、記述形式が異なるだけ
であって、同じプログラム内容を表したものである。即
ち、図27のリレー回路a−1と図28の条件表縦列b
−1が対応しており、入力A且つ入力Bを条件とする出
力Cを表す。また、同じくリレー回路a−2と条件表縦
列b−2が対応しており、入力D且つ入力Eを条件とす
る出力Fを表している。
FIGS. 27 and 28 show the same program contents except for the description format. That is, the relay circuit a-1 in FIG. 27 and the condition table column b in FIG.
-1 corresponds to it and represents an output C conditioned on input A and input B. Similarly, a relay circuit a-2 and a condition table column b-2 correspond to each other, and represent an output F conditioned on an input D and an input E.

【0005】図29は、上記ラダー図のリレー回路a−
1又は条件表の縦列b−1が示すプログラムの動作を真
偽値表で示したものであり、図30は同じくリレー回路
a−2又は条件表の縦列b−2が示すプログラムの動作
を真偽値表で示したものである。
FIG. 29 shows a relay circuit a-
1 or the operation of the program indicated by the column b-1 of the condition table is shown in a truth table. FIG. 30 shows the operation of the program indicated by the relay circuit a-2 or the column b-2 of the condition table. This is shown in a fake value table.

【0006】これらの記述はプログラミング装置(プロ
グラムローダ)によりプログラムコードに変換されPC
に格納される。そのプログラムコードは、一般にプログ
ラム言語といわれるPC内部でそのまま実行できる機械
語ではなく、PCが解析しやすい中間コードに変換され
たものである。
These descriptions are converted into program codes by a programming device (program loader) and
Is stored in The program code is not a machine language that can be directly executed in a PC, which is generally called a programming language, but is converted into an intermediate code that can be easily analyzed by the PC.

【0007】上記中間コードの基本構造は「(F op
1 op2 ・・・ opn)」の形になっており、関
数型(作用型)言語の構造を持っている。上記基本構造
の「(」は命令の始まり、「F」は命令の名称、「)」
は命令の終わりである。また、「op1」、「op
2」、・・・「opn」等は命令のオペランドであり、
これらオペランドが更に命令となって全体として階層構
造を取り得るものである。この関数型言語はPC上で直
接動作する機械語と1対1に対応しており、機械語に容
易に変換することができる。
The basic structure of the above intermediate code is “(F op
1 op2... Opn) ”, and has a functional (action) language structure. In the above basic structure, "(" is the start of an instruction, "F" is the name of the instruction, ")"
Is the end of the instruction. Also, “op1”, “op”
"2",... "Opn" are instruction operands,
These operands can further become instructions and take a hierarchical structure as a whole. This functional language has a one-to-one correspondence with a machine language that operates directly on a PC, and can be easily converted to a machine language.

【0008】通常、工程の進行状況、作業手順等の現場
の態様は流動的なものである。このため、作業現場のシ
ーケンス制御の手順(プログラム)は、元来、初めから
仕様が決められるものではなく、PCの試運転中や実際
の運転中に、現場の実情に合わせて変更や修正が絶えず
繰り返されることによって定まって行く。したがって、
これらの変化に容易に対処できるように、上述のラダー
図や条件表は、変化に対応してどのように複雑な制御内
容でも容易に記述できるものであることが望ましい。
[0008] Normally, the on-site aspects such as the progress of the process and the work procedure are fluid. For this reason, the sequence (program) of the sequence control at the work site is not originally defined as a specification from the beginning, and is constantly changed or modified according to the actual situation of the site during the trial operation or actual operation of the PC. It is decided by being repeated. Therefore,
In order to easily cope with these changes, it is desirable that the above-mentioned ladder diagram and condition table can easily describe any complicated control contents corresponding to the changes.

【0009】[0009]

【発明が解決しようとする課題】しかしながら、ラダー
図は、論理を電流の流れで模擬したものであるため、論
理を回路に変換する時には、電気的専門知識が相当程度
要求される。例えば、図31の論理回路は、その論理の
流れを電流の流れに変換して、図32のラダー図に変換
出来るが、この変換には高度の熟練を要し、初心者で
は、容易には変換できないという問題点があった。
However, since a ladder diagram simulates logic by the flow of current, a considerable amount of electrical expertise is required when converting logic into a circuit. For example, the logic circuit shown in FIG. 31 can convert the logic flow into a current flow and convert it into a ladder diagram shown in FIG. 32. However, this conversion requires a high degree of skill, and a beginner can easily perform the conversion. There was a problem that it was not possible.

【0010】そのうえ、図32のラダー図が、図31の
論理回路と等価であることを認識するにも同様にかなり
の熟練を要し、これもまた、初心者には、容易には認識
できないという問題があった。
In addition, it requires considerable skill to recognize that the ladder diagram of FIG. 32 is equivalent to the logic circuit of FIG. 31, which also cannot be easily recognized by a beginner. There was a problem.

【0011】また、条件表については、例えば、図33
の論理回路の場合は、図34に示す条件表に変換出来る
が、前述した図31の論理回路は論理が深いために条件
表には変換出来ない。また、図35のように時間遅れの
ある論理図、即ち遅延動作を持つ回路を条件表には変換
出来ない。このように、条件表は、必要な論理回路を全
て記述することが出来るわけではなく、条件表の活用に
は限界があるという問題があった。
The condition table is described in, for example, FIG.
34 can be converted to the condition table shown in FIG. 34, but the logic circuit shown in FIG. 31 cannot be converted to the condition table because of the deep logic. A logic diagram having a time delay as shown in FIG. 35, that is, a circuit having a delay operation cannot be converted into a condition table. As described above, the condition table cannot describe all necessary logic circuits, and there is a problem that the use of the condition table is limited.

【0012】本発明の課題は、専門的な知識を必要とせ
ずに作成出来、遅延動作(タイマ)を含む如何なる論理
回路をも記述可能であり、可読性に優れ、且つ実際の回
路動作状態のオンラインモニタが可能な、表形式で記述
することのできるプログラミング方法(回路記述)及び
そのプログラムを関数型言語に変換する言語変換装置を
提供することである。
SUMMARY OF THE INVENTION An object of the present invention is to create any logic circuit including a delay operation (timer) which can be created without requiring specialized knowledge, is excellent in readability, and has an online readout of an actual circuit operation state. An object of the present invention is to provide a programming method (circuit description) that can be described in a table format and that can be monitored, and a language conversion device that converts the program into a functional language.

【0013】[0013]

【課題を解決するための手段】本発明は、プログラマブ
ルコントローラのための回路図を表形式で記述する表形
式回路記述及びその関数型言語変換装置に適用される。
The present invention is applied to a tabular circuit description for describing a circuit diagram for a programmable controller in a tabular form, and a functional language converter therefor.

【0014】先ず、請求項1記載の発明の表形式回路記
述装置は、プログラマブルコントローラ(以下、PCと
称す)のための回路図を表形式で記述する機能を有する
表形式回路記述装置であって、複数の出力記述行に記述
するための出力記述機能(1)と、上記出力に対応する
複数の入力記述行に記述するための入力記述機能(2)
とからなり、上記出力記述機能(1)には、出力信号の
名称を記述する出力名称入力手段(a)と、タイマ設定
値を記述するタイマ入力手段(b)と、出力条件を記述
する出力条件入力手段(c)と、コメントを記述するコ
メント入力手段(d)とを設け、上記入力記述機能
(2)には、入力信号の名称を記述する入力名称入力手
段(e)と、信号の入力を意味する入力記号と、信号の
反転入力を意味する入力反転記号と、入力された信号の
論理和を意味する論理和記号と、入力された信号の論理
積を意味する論理積記号と、からなる記号のいずれかを
入力する入力論理入力手段(f)と、上記入力名称入力
手段(e)の入力信号または上記入力論理入力手段
(f)で入力された論理演算の演算結果を使用すること
を意味する正論理記号と、上記入力名称入力手段(e)
の入力信号または上記入力論理入力手段(f)で入力さ
れた論理演算の演算結果を反転して使用することを意味
する負論理記号と、からなる入力条件を入力する入力条
件入力手段(g)と、コメントを入力するコメント入力
手段(h)とを設け、上記出力条件入力手段(c)は、
上記入力条件入力手段(g)から入力された正論理記号
または負論理記号の論理積を出力信号に代入することを
意味するライト記号と、上記入力条件入力手段(g)か
ら入力された正論理記号または負論理記号の論理積が真
のとき出力信号をオンにし偽のとき無処理にすることを
意味するセット信号と、上記入力条件入力手段(g)か
ら入力された正論理記号または負論理記号の論理積が真
のとき出力信号をオフにし偽のとき無処理を意味するリ
セット信号と、からなる信号のうちいずれかが入力され
るように構成される。
A first aspect of the present invention is a tabular circuit description apparatus having a function of describing a circuit diagram for a programmable controller (hereinafter, referred to as a PC) in a tabular form. , An output description function for describing on a plurality of output description lines, and an input description function for describing on a plurality of input description lines corresponding to the output (2)
The output description function (1) includes output name input means (a) for describing the name of an output signal, timer input means (b) for describing a timer set value, and output for describing an output condition. A condition input means (c) and a comment input means (d) for describing a comment are provided. The input description function (2) includes an input name input means (e) for describing a name of an input signal, An input symbol meaning an input, an input inversion symbol meaning an inverted input of a signal, a logical sum symbol meaning a logical sum of input signals, and a logical product symbol meaning a logical product of input signals, And an input logic input means (f) for inputting any of the symbols consisting of: an input signal of the input name input means (e) or an operation result of a logical operation inputted by the input logic input means (f). A positive logic sign that means Fill force name input means (e)
An input condition input means (g) for inputting an input condition consisting of an input signal of (i) or a negative logic symbol meaning that the operation result of the logical operation input by the input logic input means (f) is inverted and used. And comment input means (h) for inputting a comment. The output condition input means (c)
A light symbol indicating that a logical product of a positive logic symbol or a negative logic symbol input from the input condition input means (g) is substituted for an output signal; and a positive logic signal input from the input condition input means (g). A set signal indicating that the output signal is turned on when the logical product of the symbol or the negative logical symbol is true and not processed when the logical product is false, and a positive logical symbol or negative logical input from the input condition input means (g). A reset signal that turns off the output signal when the logical product of the symbols is true and that means no processing when the symbol is false is input.

【0015】次に、請求項2記載の発明の関数型言語変
換装置は、PCのための回路図を表形式で記述した表形
式回路記述言語を関数型言語に変換する関数型言語変換
装置であって、表形式回路記述言語を記憶する回路記憶
手段(3)と、該回路記憶手段(3)に記憶されている
表形式回路記述言語から変換された関数型言語を記憶す
る言語記憶手段(4)と、上記回路記憶手段(3)に記
憶されている表形式回路記述言語の複数の出力記述行
(1)の出力条件記述欄(c)から出力条件を抽出し、
複数の入力記述行(2)の入力条件記述欄(g)から入
力条件を抽出してそれぞれ記憶する入出力条件抽出記憶
手段(5)と、該入出力条件抽出記憶手段(5)から上
記入力条件及び出力条件を読み出し、その読み出した入
力条件及び出力条件を関数型言語の入力条件及び出力条
件にそれぞれ変換して上記言語記憶手段(4)の所定領
域に格納する入出力命令作成手段(6)と、上記回路記
憶手段(3)に記憶されている表形式回路記述言語の出
力名記述欄(a)から出力名称を抽出し、タイマ記述欄
(b)からタイマ設定値を抽出してそれぞれ出力情報と
して記憶する出力情報抽出記憶手段(7)と、該出力情
報抽出記憶手段(7)から読み出した上記出力名称と上
記タイマ設定値に基づいて関数型言語のタイマ命令とタ
イマ値名称とに変換して上記言語記憶手段(4)の所定
領域に格納するタイマ命令作成手段(8)と、上記回路
記憶手段(3)に記憶されている表形式回路記述言語の
論理記述欄(f)から入力論理を抽出し関数型言語に変
換して記憶する入力論理抽出記憶手段(9)と、該入力
論理抽出記憶手段(9)から読み出した上記入力論理及
び上記入出力条件抽出記憶手段(5)から読み出した上
記入力条件と出力条件に基づいて関数型言語の&命令を
作成し、その&命令を上記言語記憶手段(4)の所定領
域に格納すると共に、&命令を作成したことを記憶する
&命令作成手段(10)と、上記出力情報抽出記憶手段
(7)からタイマ設定値を読み出しそのタイマ設定値を
上記言語記憶手段(4)の所定位置に格納すると共に、
上記&命令作成手段(10)により作成したことを記憶
されている&命令に対応する命令終了コードを格納する
タイマ設定値作成手段(11)と、上記の出力情報抽出
記憶手段(7)から出力名称を読み出してその出力名称
を上記言語記憶手段(4)の所定位置に格納する出力命
令作成手段(12)と、を有して構成される。
A functional language conversion apparatus according to a second aspect of the present invention is a functional language conversion apparatus for converting a circuit description language in a table format in which a circuit diagram for a PC is described in a table format into a functional language. Circuit storage means (3) for storing a table-form circuit description language; and language storage means (for storing a functional language converted from the table-form circuit description language stored in the circuit storage means (3)). 4) extracting output conditions from an output condition description column (c) of a plurality of output description lines (1) of a tabular circuit description language stored in the circuit storage means (3);
Input / output condition extraction storage means (5) for extracting input conditions from input condition description fields (g) of a plurality of input description lines (2) and storing the input conditions, respectively; An input / output instruction creating means (6) for reading the condition and output condition, converting the read input condition and output condition into a functional language input condition and output condition, respectively, and storing them in a predetermined area of the language storage means (4); ), And extract the output name from the output name description field (a) of the tabular circuit description language stored in the circuit storage means (3), and extract the timer set value from the timer description field (b). Output information extraction storage means (7) for storing as output information; and a timer instruction and a timer value name of a functional language based on the output name and the timer set value read from the output information extraction storage means (7). Strange A timer instruction creating means (8) for storing the information in a predetermined area of the language storage means (4) and a logic description field (f) of a tabular circuit description language stored in the circuit storage means (3). Input logic extraction storage means (9) for extracting logic, converting it into a functional language, and storing the input logic and input / output condition extraction storage means (5) read from the input logic extraction storage means (9) A & instruction of a functional language is created based on the read input condition and output condition, and the & instruction is stored in a predetermined area of the language storage means (4), and that the & instruction has been created is stored. The instruction setting means (10) and the timer setting value are read from the output information extraction storage means (7), and the timer setting value is stored in a predetermined position of the language storage means (4).
A timer setting value generating means (11) for storing an instruction end code corresponding to the & instruction which stores the information generated by the & instruction generating means (10) and an output from the output information extracting and storing means (7) Output command creating means (12) for reading the name and storing the output name in a predetermined position of the language storage means (4).

【0016】また、請求項3記載の発明の表形式回路記
述方法は、プログラマブルコントローラ(以下、PCと
称す)のための回路図を表形式で記述する表形式回路記
述方法であって、複数の出力記述行に記述する出力記述
ステップ(1)と、上記出力に対応する複数の入力記述
行に記述するための入力記述ステップ(2)とからな
り、上記出力記述ステップ(1)は、出力信号の名称を
記述する出力名称入力ステップ(a)と、タイマ設定値
を記述するタイマ入力ステップ(b)と、出力条件を記
述する出力条件入力ステップ(c)と、コメントを記述
するコメント入力ステップ(d)とからなり、上記入力
記述ステップ(2)は、入力信号の名称を記述する入力
名称入力ステップ(e)と、信号の入力を意味する入力
記号と、信号の反転入力を意味する入力反転記号と、入
力された信号の論理和を意味する論理和記号と、入力さ
れた信号の論理積を意味する論理積記号と、からなる記
号のいずれかを入力する入力論理入力ステップ(f)
と、上記入力名称入力ステップ(e)で入力された入力
信号または上記入力論理入力ステップ(f)で入力され
た論理演算の演算結果を使用することを意味する正論理
記号と、上記入力名称入力手段(e)の入力信号または
上記入力論理入力手段(f)で入力された論理演算の演
算結果を反転して使用することを意味する負論理記号
と、からなる入力条件を入力する入力条件入力ステップ
(g)と、コメントを入力するコメント入力ステップ
(h)とからなり、上記出力条件入力ステップ(c)
は、上記入力条件入力ステップ(g)で入力された正論
理記号または負論理記号の論理積を出力信号に代入する
ことを意味するライト記号と、上記入力条件入力手段
(g)で入力された正論理記号または負論理記号の論理
積が真のとき出力信号をオンにし偽のとき無処理にする
ことを意味するセット信号と、上記入力条件入力手段
(g)で入力された正論理記号または負論理記号の論理
積が真のとき出力信号をオフにし偽のとき無処理を意味
するリセット信号と、からなる信号のうちいずれかが入
力されるように構成される。
A third aspect of the present invention is a tabular circuit description method for describing a circuit diagram for a programmable controller (hereinafter referred to as a PC) in a tabular form. An output description step (1) described on an output description line and an input description step (2) for describing on a plurality of input description lines corresponding to the output are provided. Output name input step (a) that describes the name of the output, a timer input step (b) that describes the timer setting value, an output condition input step (c) that describes the output condition, and a comment input step ( d), the input description step (2) includes an input name input step (e) for describing a name of an input signal, an input symbol indicating input of a signal, and inversion of the signal. An input logic for inputting any of the following symbols: an input inversion symbol meaning force, a logical sum symbol meaning the logical sum of input signals, and a logical product symbol meaning logical product of input signals. Input step (f)
And a positive logical symbol meaning that the input signal input in the input name input step (e) or the operation result of the logical operation input in the input logical input step (f) is used, and the input name input An input condition input for inputting an input condition consisting of an input signal of the means (e) or a negative logic symbol indicating that the operation result of the logical operation input by the input logic input means (f) is inverted and used; The output condition input step (c) comprises a step (g) and a comment input step (h) for inputting a comment.
Is a light symbol indicating that a logical product of the positive logic symbol or the negative logic symbol input in the input condition input step (g) is substituted for the output signal, and the light symbol input in the input condition input means (g). A set signal meaning that the output signal is turned on when the logical product of the positive logical symbol or the negative logical symbol is true and not processed when the logical product is false, and a positive logical symbol or a logical signal input by the input condition input means (g). A reset signal that turns off the output signal when the logical product of the negative logical symbols is true and turns off the output signal when the logical product is false is input.

【0017】また、請求項4記載の発明の関数型言語変
換方法は、PCのための回路図を表形式で記述した表形
式回路記述言語を関数型言語に変換する関数型言語変換
方法であって、表形式回路記述言語を記憶する回路記憶
手順(3)と、該回路記憶手順(3)で記憶されている
表形式回路記述言語から変換された関数型言語を記憶す
る言語記憶手順(4)と、上記回路記憶手順(3)で記
憶されている表形式回路記述言語の複数の出力記述行
(1)の出力条件記述欄(c)から出力条件を抽出し、
複数の入力記述行(2)の入力条件記述欄(g)から入
力条件を抽出してそれぞれ記憶する入出力条件抽出記憶
手順(5)と、該入出力条件抽出記憶手順(5)で記憶
されている上記入力条件及び出力条件を読み出し、その
読み出した入力条件及び出力条件を関数型言語の入力条
件及び出力条件にそれぞれ変換して上記言語記憶手順
(4)の所定領域に格納する入出力命令作成手順(6)
と、上記回路記憶手順(3)で記憶されている表形式回
路記述言語の出力名記述欄(a)から出力名称を抽出
し、タイマ記述欄(b)からタイマ設定値を抽出してそ
れぞれ出力情報として記憶する出力情報抽出記憶手順
(7)と、該出力情報抽出記憶手順(7)で記憶されて
いる上記出力名称と上記タイマ設定値を読み出して、こ
の読み出した上記出力名称と上記タイマ設定値に基づい
て関数型言語のタイマ命令とタイマ値名称とに変換して
上記言語記憶手順で記憶する所定領域に格納するタイマ
命令作成手順(8)と、上記回路記憶手順(3)で記憶
されている表形式回路記述言語の論理記述欄(f)から
入力論理を抽出し関数型言語に変換して記憶する入力論
理抽出記憶手順(9)と、該入力論理抽出記憶手順
(9)で記憶されている上記入力論理及び上記入出力条
件抽出記憶手順(5)で記憶されている上記入力条件と
出力条件に基づいて関数型言語の&命令を作成し、その
&命令を上記言語記憶手順(4)の所定領域に格納する
と共に、&命令を作成したことを記憶する&命令作成手
順(10)と、上記出力情報抽出記憶手順(7)で記憶
されているタイマ設定値を読み出しそのタイマ設定値を
上記言語記憶手順(4)で記憶する所定位置に格納する
と共に、上記&命令作成手順(10)で作成したことを
記憶されている&命令に対応する命令終了コードを格納
するタイマ設定値作成手順(11)と、上記の出力情報
抽出記憶手順(7)で記憶されている上記出力名称を読
み出してその出力名称を上記言語記憶手順(4)で記憶
する所定位置に格納する出力命令作成手順(12)と、
を有して構成される。
A functional language conversion method according to a fourth aspect of the present invention is a functional language conversion method for converting a tabular circuit description language in which a circuit diagram for a PC is described in a table format into a functional language. Circuit storage procedure (3) for storing the table-form circuit description language, and a language storage procedure (4) for storing the functional language converted from the table-form circuit description language stored in the circuit storage procedure (3). ), And extracting the output condition from the output condition description column (c) of the plurality of output description lines (1) of the tabular circuit description language stored in the circuit storage procedure (3),
An input / output condition extraction / storage procedure (5) for extracting and storing input conditions from the input condition description field (g) of the plurality of input description lines (2), and the input / output condition extraction / storage procedure (5) An input / output instruction for reading the input condition and the output condition, converting the read input condition and the output condition into the input condition and the output condition of the functional language, and storing the input condition and the output condition in a predetermined area of the language storage procedure (4). Creation procedure (6)
And the output name is extracted from the output name description field (a) of the tabular circuit description language stored in the circuit storage procedure (3), and the timer setting value is extracted from the timer description field (b) and output. An output information extraction and storage procedure (7) for storing as information, the output name and the timer setting value stored in the output information extraction and storage procedure (7) are read, and the read output name and the timer setting are read out. A timer instruction creation procedure (8) that converts the value into a timer instruction of a functional language and a timer value name based on the value and stores it in a predetermined area that is stored in the language storage procedure, and is stored in the circuit storage procedure (3). An input logic extraction and storage procedure (9) for extracting input logic from a logic description field (f) of a tabular circuit description language, converting it into a functional language, and storing the input logic, and storing the input logic in the input logic extraction and storage procedure (9) Being on A & instruction of a functional language is created based on the input logic and the input and output conditions stored in the input / output condition extraction and storage procedure (5), and the & instruction is specified in the language storage procedure (4). The & instruction creation procedure (10) for storing the & instruction creation in the area and reading the timer setting value stored in the output information extraction and storage procedure (7) and reading the timer setting value in the language A timer setting value creation procedure (11) that stores the instruction completion code corresponding to the & instruction stored in the & instruction creation procedure (10), which is stored in a predetermined position stored in the storage procedure (4). ), And an output command creation procedure for reading out the output name stored in the output information extraction storage procedure (7) and storing the output name in a predetermined position stored in the language storage procedure (4) ( And 2),
Is configured.

【0018】そして、上記表形式回路記述言語は、例え
ば請求項5記載のように、プログラマブルコントローラ
のための回路図を表形式で記述する表形式回路記述言語
であって、出力を記述するための複数の出力記述行
(1)と、上記出力に対応する入力を記述するための複
数の入力記述行(2)とからなり、上記出力記述行
(1)には出力信号の名称を記述する出力名記述欄
(a)と、タイマ設定値を記述するタイマ記述欄(b)
と、出力条件を記述する出力条件記述欄(c)と、コメ
ントを記述するコメント記述欄(d)とを設け、上記入
力記述行(2)には入力信号の名称を記述する入力名記
述欄(e)と、入力論理を記述する入力論理記述欄
(f)と、入力条件を記述する入力条件記述欄(g)
と、コメントを記述するコメント記述欄(h)とを設け
て、上記入力論理記述欄(f)に記述するための、信号
の入力を意味する入力記号と、信号の反転入力を意味す
る入力反転記号と、入力された信号の論理和を意味する
論理和記号と、入力された信号の論理積を意味する論理
積記号とを有し、上記入力条件記述欄(g)に記述する
ための、上記入力名記述欄(e)の入力信号又は上記入
力論理記述欄(f)の演算結果を使用することを意味す
る正論理記号と、上記入力名記述欄(e)の入力信号又
は上記入力論理記述欄(f)の演算結果を反転して使用
することを意味する負論理記号とを有し、上記出力条件
記述欄(c)に記述するための、上記入力条件記述欄
(g)の正論理記号又は負論理記号の論理積を出力信号
に代入することを意味するライト記号と、上記入力条件
記述欄(g)の正論理記号又は負論理記号の論理積が真
のとき出力信号をオンにし偽のとき無処理にすることを
意味するセット記号と、上記入力条件記述欄(g)の正
論理記号又は負論理記号の論理積が真のとき出力信号を
オフにし偽のとき無処理を意味するリセット記号とを有
している。
The tabular circuit description language is, for example, a tabular circuit description language for describing a circuit diagram for a programmable controller in a tabular form. The output description line (1) includes a plurality of output description lines (1) and a plurality of input description lines (2) for describing an input corresponding to the output. Name description field (a) and timer description field (b) that describes the timer set value
And an output condition description field (c) for describing an output condition, and a comment description field (d) for describing a comment. The input description line (2) includes an input name description field for describing a name of an input signal. (E), an input logic description field (f) describing input logic, and an input condition description field (g) describing input conditions.
And a comment description field (h) for describing a comment, and an input symbol representing an input of a signal and an input inversion representing an inverted input of a signal for describing in the input logic description field (f). A symbol, a logical sum symbol indicating a logical sum of the input signals, and a logical product symbol indicating the logical product of the input signals, and are described in the input condition description field (g). A positive logical symbol indicating that the input signal of the input name description field (e) or the operation result of the input logic description field (f) is used, and the input signal or the input logic of the input name description field (e). A negative logical symbol meaning that the operation result in the description field (f) is used in an inverted manner; and a positive logic in the input condition description field (g) for describing in the output condition description field (c). Means to substitute the logical product of logical or negative logical symbols into the output signal. And a set symbol meaning that the output signal is turned on when the logical product of the positive logical symbol or the negative logical symbol in the input condition description field (g) is true and not processed when the logical product is false. The output signal is turned off when the logical product of the positive logical symbol or the negative logical symbol in the condition description column (g) is true, and the reset symbol means no processing when the logical product is false.

【0019】また、上記表形式回路記述言語は、例えば
請求項6記載のように、上記入力論理記述欄(f)に記
述する上記信号の入力を意味する入力記号を矢印で表
し、上記信号の反転入力を意味する入力反転記号を中央
に黒丸を付加された矢印で表し、論理和を意味する上記
論理和記号を縦一本の線で表し、上記論理積を意味する
論理積記号を平行する縦二本の線で表し、上記出力条件
記述欄(c)に記述する上記ライト記号を「W」で表
し、上記セット記号を「S」で表し、上記リセット記号
を「R」で表し、上記入力条件記述欄(g)に記述する
上記正論理記号を「○」で表し、上記負論理記号を
「×」で表すように構成されている。
Further, in the above-mentioned tabular circuit description language, for example, an input symbol representing an input of the signal described in the input logic description field (f) is represented by an arrow. An input inversion symbol indicating inversion input is represented by an arrow with a black circle added at the center, the above-mentioned OR symbol representing OR is represented by a single vertical line, and the AND symbol representing AND is parallelized The light symbol described in the output condition description column (c) is represented by “W”, the set symbol is represented by “S”, the reset symbol is represented by “R”, and the reset symbol is represented by “R”. The positive logical symbol described in the input condition description column (g) is represented by “○”, and the negative logical symbol is represented by “×”.

【0020】[0020]

【0021】これにより、専門的な知識を必要とせず、
可読性に優れた、遅延動作(タイマ)を含む如何なる論
理回路をも記述できる。また、このように記述された表
形式回路記述は、請求項3記載の関数型言語変換装置の
各手段により容易に関数型言語に変換されて記憶され
る。
[0021] This eliminates the need for specialized knowledge,
Any logic circuit including a delay operation (timer) with excellent readability can be described. Further, the tabular circuit description described in this manner is easily converted into a functional language by each means of the functional language converter according to claim 3 and stored.

【0022】これにより、機械語に変換してPCを動作
させ、実際の回路動作状態のオンラインモニタができ
る。
Thus, the PC can be operated by converting it into a machine language, and online monitoring of the actual circuit operation state can be performed.

【0023】[0023]

【実施例】以下、本発明の実施例について図面を用いて
詳細に説明する。図4は前述した図31の論理回路図を
本発明の回路表形式で記述したもの、図5は同じく図3
の論理回路図を同じく回路表形式に記述したものであ
る。
Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 4 shows the logic circuit diagram of FIG . 31 described above in the form of a circuit table according to the present invention, and FIG .
5 is also described in the form of a circuit table.

【0024】図4、図5共に、上3行の出力記述行31
と、下6行の入力記述行32からなる回路表形式を有し
ている。また、出力記述行31は、出力名記述欄33、
タイマ記述欄34、及び出力条件記述欄35からなり、
入力記述行32は、入力名記述欄36、入力論理記述欄
37、及び入力条件記述欄38からなる。
4 and 5, the upper three output description lines 31
And a circuit table format consisting of the input description lines 32 at the bottom six lines. The output description line 31 includes an output name description field 33,
It consists of a timer description field 34 and an output condition description field 35,
The input description line 32 includes an input name description field 36, an input logic description field 37, and an input condition description field 38.

【0025】図4の入力名記述欄36には、図31にお
ける入力信号の名称A〜Fがそのまま記述される。ま
た、入力論理記述欄37には、信号B,D及びEの反転
入力が黒丸付き矢印で、信号A,C及びFの入力が矢印
または無印で、オア回路が縦一本線で、そしてアンド回
路が縦二本線で記述される。また、入力条件記述欄38
には最後のアンド回路への入力が記号○印で記述されて
いる。
In the input name description column 36 in FIG. 4, the names A to F of the input signals in FIG. 31 are described as they are. In the input logic description field 37, the inverted inputs of the signals B, D and E are indicated by arrows with black circles, the inputs of the signals A, C and F are indicated by arrows or no marks, the OR circuit is a single vertical line, and the AND circuit is indicated. Is described by two vertical lines. The input condition description field 38
, The input to the last AND circuit is described by the symbol ○.

【0026】そして、出力名記述欄33には、出力信号
の名称Gが記述され、それに対応するタイマ記述欄34
に記述はなく、出力条件記述欄35に記号「W」が記述
されている。
The output name description column 33 describes the name G of the output signal, and the corresponding timer description column 34
, The symbol “W” is described in the output condition description field 35.

【0027】また、図5では、入力名記述欄36、入力
論理記述欄37及び入力条件記述欄38には、上記と同
様に、図35の論理回路図が記述されている。そして、
この場合は、タイマ回路のタイマ値「1」がタイマ記述
欄34に記述されている。
In FIG. 5, the logic circuit diagram of FIG . 35 is described in the input name description field 36, the input logic description field 37, and the input condition description field 38 in the same manner as described above. And
In this case, the timer value “1” of the timer circuit is described in the timer description field 34.

【0028】このように、本実施例によれば、従来では
不可能であった図31又は図35の論理回路の条件表へ
の変換が容易に行なえるようになる。さらに、特には図
示しないが上記図31又は図35の論理回路に比較して
論理のより深い(複雑な)回路を、表形式に記述した例
を図6に示す。同図の表形式記述では、上方に出力名記
述欄43、タイマ記述欄44、及び出力条件記述欄45
からなる出力記述行41(3行)が設けられ、下方に入
力名記述欄46、入力論理記述欄47、及び入力条件記
述欄48からなる入力記述行42(7行)が設けられて
いる。出力記述行41、及び入力記述行42は、いずれ
も行数に制約はなく、論理の深さに応じて増加する。
As described above, according to the present embodiment, the conversion to the condition table of the logic circuit shown in FIG . Further, although not specifically shown, FIG. 6 shows an example in which a circuit having a deeper (complex) logic than the logic circuit shown in FIG. 31 or FIG. 35 is described in a table format. In the tabular description shown in FIG. 11, an output name description field 43, a timer description field 44, and an output condition description field 45 are provided at the top.
Are provided, and an input description line 42 (seven lines) including an input name description field 46, an input logic description field 47, and an input condition description field 48 are provided below. Each of the output description lines 41 and the input description lines 42 has no restriction on the number of lines, and increases according to the logic depth.

【0029】上記の入力名記述欄46には、入力信号の
名称が、「I.RD−EMS」、「I.RD−RU
N」、「I.F−ELS」、「I.RST−COS」、
「I.F−LS」、「T.SSTIM」及び「I.FR
D−ST」と記述されている。
In the input name description field 46, the names of the input signals are "I.RD-EMS" and "I.RD-RU".
N "," IF-ELS "," I. RST-COS ",
"IF-LS", "T.SSTIM" and "IFFR"
D-ST ".

【0030】また、入力論理記述欄47には、その上方
に、入力信号「I.RD−RUN」及び「I.F−EL
S」の入力がそれぞれ矢印47−0及び47−1で記述
され、それら入力47−0及び47−1の加わるオア回
路が一本の縦線47−2で記述され、そのオア回路47
−2の演算結果が矢印47−3で記述され、その演算結
果47−3が最終段のアンド回路(無記号、欄の仕切り
線で代用)へ入力することが記述されている。
In the input logic description column 47, input signals "I.RD-RUN" and "IF-EL"
The input of "S" is described by arrows 47-0 and 47-1, and the OR circuit to which these inputs 47-0 and 47-1 are added is described by one vertical line 47-2.
The calculation result of -2 is described by an arrow 47-3, and it is described that the calculation result 47-3 is input to the final AND circuit (no symbol, substituted by a partition line in the column).

【0031】また、その下方には、入力信号「I.F−
LS」及び「T.SSTIM」の入力がそれぞれ矢印4
7−4及び47−5で記述され、それら入力47−4及
び47−5の加わるアンド回路が二本の縦線47−6で
記述され、そのアンド回路47−6の演算結果が矢印4
7−7で記述され、その演算結果47−7の加わるオア
回路が一本の縦線47−8で記述され、上記演算結果4
7−7と共にそのオア回路47−8に加わる入力信号
「I.FRD−ST」の入力が矢印47−9で記述され
ている。さらに、上記のオア回路47−8の演算結果が
矢印47−10で記述されて、最終段のアンド回路へ入
力(欄の仕切り線)することが記述されている。
Below the input signal "IF-
LS "and" T.SSTIM "are input with arrows 4 respectively.
7-4 and 47-5, the AND circuit to which the inputs 47-4 and 47-5 are added is described by two vertical lines 47-6, and the operation result of the AND circuit 47-6 is indicated by an arrow 4
7-7, and the OR circuit to which the operation result 47-7 is added is described by one vertical line 47-8.
The input of the input signal "I. FRD-ST" applied to the OR circuit 47-8 together with 7-7 is described by an arrow 47-9. Further, the operation result of the above OR circuit 47-8 is described by an arrow 47-10, and it is described that the result is inputted to the AND circuit at the last stage (partition line of the column).

【0032】そして、入力条件記述欄48の一列目48
−1には、その1行目に入力信号「I.RD−EMS」
の入力記号が○印で記述され、2行目にオア回路47−
2の演算結果47−3の入力記号が○印で記述され、5
行目にオア回路47−8の演算結果47−10の入力記
号が×印で記述されている。
The first column 48 of the input condition description field 48
−1, the input signal “I.RD-EMS” in the first row
Is described by a circle, and the OR circuit 47−
The input symbol of the operation result 47-3 of 2 is described with a circle, and 5
In the row, the input symbol of the operation result 47-10 of the OR circuit 47-8 is described with a cross.

【0033】上記の入力記号の○印は、対応する行の入
力信号を使用するか又は論理の演算結果を使用すること
を表し、×印は、対応する行の入力信号又は論理の演算
結果を反転して使用することを表している。
The symbol 記号 in the above input symbol indicates that the input signal of the corresponding row is used or the result of the logical operation is used, and the symbol x indicates that the input signal or the result of the logical operation of the corresponding row is used. It indicates that it is used inverted.

【0034】一方、同図の出力名記述欄43には、出力
信号の名称「T.SSTIM」、「M.RD−F」、
「M.RD−R」が記述され、その信号「T.SSTI
M」に対応するタイマ記述欄44にはタイマ値が格納さ
れているアドレス「DIABCDE」が記述され、出力
条件記述欄45には出力条件「W」が記述されている。
On the other hand, in the output name description column 43 of FIG. 3, output signal names "T.SSTIM" , "M.RD-F",
“M.RD-R” is described, and the signal “T.SSTI ” is written.
The address “DIABCDE” where the timer value is stored is described in the timer description field 44 corresponding to “M” , and the output condition “W” is described in the output condition description field 45.

【0035】この出力条件「W」は、論理の演算結果を
出力信号「T.SSTIM」に代入することを表してい
る。これに対応する論理の演算結果は、入力条件記述欄
48の一列目48−1に入力条件である2つの○印及び
1つの×印が記述されていることにより、入力信号
「I.RD−EMS」及びオア回路47−2の演算結果
47−3と、オア回路回路47−8の演算結果47−1
0の反転信号との、3つの入力の論理積で導き出される
ことが示される。
The output condition “W” indicates that the result of the logical operation is substituted for the output signal “T.SSTIM” . The logical operation result corresponding to the input signal “I.RD-” is obtained by describing two input marks “○” and one “X” as input conditions in the first column 48-1 of the input condition description field 48. EMS "and the operation result 47-3 of the OR circuit 47-2, and the operation result 47-1 of the OR circuit 47-8
It is shown that it is derived by the logical product of three inputs with the inverted signal of 0.

【0036】また、出力名記述欄43の出力信号「M.
RD−F」に対応するタイマ記述欄44にはタイマ値の
記述はなく、出力条件記述欄45に出力条件「S」が記
述されている。
The output signal "M.
No timer value is described in the timer description column 44 corresponding to "RD-F", and the output condition "S" is described in the output condition description column 45.

【0037】この、出力条件「S」は、論理の演算結果
が真のとき出力信号「M.RD−F」をONにし、論理
の演算結果が偽のとき無処理とすることを表している。
これに対応する論理の演算結果は、入力記号記述欄48
の三列目48−3に入力条件である2つの○印が記述さ
れることにより、オア回路47−2の演算結果47−3
と、オア回路回路47−8の演算結果47−10との2
つの入力の論理積で導き出されることが示される。
The output condition "S" indicates that the output signal "M.RD-F" is turned on when the logical operation result is true, and that no processing is performed when the logical operation result is false. .
The operation result of the logic corresponding to this is input symbol description field 48.
Are described in the third column 48-3, which is the input condition, so that the operation result 47-3 of the OR circuit 47-2 is obtained.
And the operation result 47-10 of the OR circuit 47-8
It is shown that it is derived by AND of two inputs.

【0038】さらに、出力名記述欄43の出力信号
「M.RD−R」も、対応するタイマ記述欄44にはタ
イマ値の記述はなく、出力条件記述欄45に出力条件
「R」が記述されている。
In the output signal "M.RD-R" in the output name description field 43, the timer value is not described in the corresponding timer description field 44, and the output condition "R" is described in the output condition description field 45. Have been.

【0039】この出力条件「R」は、論理の演算結果が
真のとき出力信号「M.RD−R」をOFFにし論理の
演算結果が偽のとき無処理とすることを表している。こ
れに対応する論理の演算結果は、入力記号記述欄48の
二列目48−2に入力記号である3つの×印が記述され
ることにより、入力信号「I.RD−EMS」、オア回
路47−2の演算結果47−3、及び入力信号「I.R
ST−COS」が、それぞれ反転して入力する3つの入
力の論理積で導き出されることが示される。
The output condition "R" indicates that the output signal "M.RD-R" is turned off when the logical operation result is true and no processing is performed when the logical operation result is false. The logical operation result corresponding to the input signal “I.RD-EMS” and the OR circuit are described by describing three X symbols as input symbols in the second column 48-2 of the input symbol description field 48. 47-2 and the input signal "IR.
It is shown that "ST-COS" is derived by the logical product of three inputs that are inverted and input.

【0040】本実施例では、このような表形式の回路記
述(条件表記述)を行って、これを回路プログラム即ち
ソースプログラムとする。上述の図6の回路プログラム
は、図7に示す関数型言語と等価である。この関数型言
語は、ソースプログラムとオブジェクトプログラムとを
結ぶ中間コードであり、機械語に容易に変換され得るも
のである。
In this embodiment, such a table-like circuit description (condition table description) is performed, and this is used as a circuit program, that is, a source program. The above-described circuit program of FIG. 6 is equivalent to the functional language shown in FIG. This functional language is an intermediate code that connects a source program and an object program, and can be easily converted into a machine language.

【0041】同図の関数型言語の1行目、8行目及び9
行目における命令「W」、「R」及び「S」は、上述し
た図6の出力条件記号「W」、「R」及び「S」とそれ
ぞれ同義である。また、同じく1行目の命令「TON」
は、出力を所定時間(秒)後に行うよう指示するタイマ
命令である。
The first, eighth, and ninth lines of the functional language shown in FIG.
The instructions “W”, “R” and “S” in the line are synonymous with the above-described output condition symbols “W”, “R” and “S” in FIG. Also, the instruction “TON” on the first line
Is a timer instruction instructing output to be performed after a predetermined time (second).

【0042】2行目における命令「&」は、同じく2行
目の第1オペランドと、3行目の第2オペランドと、4
行目の第3オペランドとの論理積を求める演算命令であ
る。他の行の命令「&」も同様に第1〜第3のオペラン
ド、又は第1と第2のオペランドの論理積を求める演算
命令である。
The instruction “&” in the second line is the same as the first operand in the second line, the second operand in the third line,
This is an operation instruction for obtaining a logical product with the third operand on the line. Similarly, the instruction “&” in the other rows is an operation instruction for obtaining the logical product of the first to third operands or the first and second operands.

【0043】3行目、4行目、8行目及び9行目におけ
る命令「>=1」は、この場合は、いずれも第1オペラ
ンドと第2オペランドとの論理和を求める演算命令であ
る。また、4行目と8行目の命令「NOT」は、出力を
反転させる命令である。また、8行目の入力信号「I.
RD−EMS」、「I.RST−COS」等の直前に付
加されている記号「!」は、それらの信号が反転するこ
とを表している。
The instruction “> = 1” in the third, fourth, eighth, and ninth lines is, in this case, a logical sum of the first operand and the second operand. Is an operation instruction for The instruction “NOT” on the fourth and eighth lines is an instruction for inverting the output. Further, the input signal “I.
The symbol "!" Added immediately before " RD-EMS", "I. RST-COS", etc. indicates that those signals are inverted.

【0044】次に、図8に、上述したソースプログラム
すなわち表形式回路記述(図4乃至図6参照)を関数型
言語に変換する関数型言語変換装置のブロック図を示
す。同図において、関数型言語変換装置50は、表形式
回路記述を記憶するソース格納装置51及びそのソース
格納装置51に記憶されている表形式回路記述から変換
された関数型言語(図7参照)を記憶する関数型言語格
納装置52を備えている。
Next, FIG. 8 shows a block diagram of a functional language conversion apparatus for converting the above-mentioned source program, that is, the table-form circuit description (see FIGS. 4 to 6) into a functional language. In the figure, a functional language converter 50 is a source storage device 51 for storing a table type circuit description, and a functional type language converted from the table type circuit description stored in the source storage device 51 (see FIG. 7). Is provided with a functional language storage device 52 for storing.

【0045】そして、関数型言語変換装置50は、その
ソース格納装置51に記憶されている表形式回路記述か
ら入出力条件を抽出する入出力条件抽出装置53、後述
する図9に示す11行と5列からなるデータ領域を有
し、そのデータ領域に、上記の入出力条件抽出装置53
により抽出された入出力条件を記憶する入出力条件格納
装置54、及びその入出力条件格納装置54のデータ領
域から入出力条件を読み出して、その入出力条件を関数
型言語格納装置52の所定位置に格納するW,R,S命
令作成装置55を有している。
Then, the functional language conversion device 50 includes an input / output condition extraction device 53 for extracting input / output conditions from the tabular circuit description stored in the source storage device 51. It has a data area consisting of 5 columns, and the input / output condition extraction device 53
And an input / output condition storage device 54 for storing the input / output conditions extracted in accordance with the above. Has a W, R, S instruction creating device 55 for storing the instruction.

【0046】さらに、関数型言語変換装置50は、ソー
ス格納装置51の表形式回路記述から出力行情報を抽出
する出力行抽出装置56、後述する図10に示す1行分
が出力名称とタイマ設定値からなる6行分のデータ領域
を有して、そのデータ領域に、出力行抽出装置56によ
り抽出された出力行情報の出力名称とタイマ設定値を記
憶する出力行情報格納装置57、及びその出力行情報格
納装置57のデータ領域からタイマ設定値を読み出し、
そのタイマ設定値に基づくタイマ命令とタイマ値名称と
を関数型言語格納装置52の所定位置に格納するタイマ
命令作成装置58を有している。
Further, the functional language converter 50 includes an output line extraction device 56 for extracting output line information from the tabular circuit description of the source storage device 51. One line shown in FIG. An output line information storage device 57 which has a data region for six lines of values and stores the output name and timer set value of the output line information extracted by the output line extraction device 56 in the data region; The timer setting value is read from the data area of the output row information storage device 57,
It has a timer instruction creation device 58 that stores a timer instruction based on the timer set value and a timer value name at a predetermined position in the functional language storage device 52.

【0047】さらにまた、関数型言語変換装置50は、
ソース格納装置51の表形式回路記述から入力論理を抽
出する入力論理抽出装置59、図11に示す8行のデー
タ領域を有して、そのデータ領域に、入力論理抽出装置
59により抽出された入力論理を関数型言語に変換して
記憶する入力論理格納装置60、及び上記の入出力条件
格納装置57に記憶された入出力条件と入力論理格納装
置60に記憶された入力論理とに基づいて、入力の反転
をも加えた&命令を作成し、その&命令を関数型言語格
納装置52の所定位置に格納すると共に、&命令を作成
したことを記憶する&命令作成装置61を有している。
Further, the functional language conversion device 50 includes:
An input logic extraction device 59 for extracting input logic from the table-form circuit description of the source storage device 51. The input logic extraction device 59 has an 8-row data area shown in FIG. Based on the input logic storage device 60 that converts logic into a functional language and stores it, and the input / output conditions stored in the input / output condition storage device 57 and the input logic stored in the input logic storage device 60, An & instruction is created by adding an inversion of the input, the & instruction is stored at a predetermined position in the functional language storage device 52, and an & instruction creating device 61 is stored to store the fact that the & instruction was created. .

【0048】また最後に、関数型言語変換装置50は、
上記の出力行情報格納装置57に記憶された出力行情報
からタイマ設定値名称を読み出し、そのタイマ設定値を
関数型言語格納装置52の所定位置に格納すると共に、
&命令に対応する命令終了コードを格納するタイマ設定
値作成装置62、及び同じく出力行情報格納装置57に
記憶された出力行情報から、出力信号名称を読み出して
その出力信号名称を関数型言語格納装置52に格納する
出力命令作成装置63を有している。
Finally, the functional language converter 50 includes:
The timer setting value name is read from the output line information stored in the output line information storage device 57, and the timer setting value is stored in a predetermined position of the functional language storage device 52.
& The output signal name is read from the timer setting value creation device 62 for storing the instruction end code corresponding to the instruction and the output line information similarly stored in the output line information storage device 57, and the output signal name is stored in a functional language. An output command creation device 63 to be stored in the device 52 is provided.

【0049】図9は、上記表形式回路記述から抽出さ
れ、入出力条件抽出装置53のデータ領域に格納される
入出力条件の格納状態図である。同図においては、入出
力条件は縦11行、横5列の状態で格納される。このデ
ータ領域の最低必要行数は入力信号数プラス2行であ
り、同図の例では、図6に示した表形式回路記述の入出
力条件を格納しており、その入力信号数が7個であるた
め、10及び11行目は未使用となる。また、このデー
タ領域の最低必要列数は出力信号数であり、図6に示し
た表形式回路記述の出力信号が3個であるので4及び5
列目は未使用となる。
FIG. 9 is a storage state diagram of input / output conditions extracted from the above-described circuit description in the form of a table and stored in the data area of the input / output condition extraction device 53. In the figure, the input / output conditions are stored in a state of 11 rows and 5 columns. The minimum required number of rows in this data area is the number of input signals plus two rows. In the example of FIG. 6, the input / output conditions of the tabular circuit description shown in FIG. 6 are stored, and the number of input signals is seven. Therefore, the 10th and 11th lines are unused. The minimum required number of columns in this data area is the number of output signals, and since the number of output signals in the tabular circuit description shown in FIG.
The column is unused.

【0050】データ領域の使用部においては、1行目の
1乃至3列には、出力条件「W」、「R」、及び「S」
がそれぞれ格納されている。そして、2行目の1乃至3
列には、上記出力条件「W」、「R」、及び「S」が記
述された表形式回路記述の行番号が格納されている。
In the use part of the data area, the output conditions "W", "R", and "S"
Are respectively stored. And 1 to 3 in the second row
The column stores the row numbers of the tabular circuit description in which the output conditions “W”, “R”, and “S” are described.

【0051】また、データ領域の3乃至9行目の1乃至
3列には、図6に示した表形式回路記述の入力条件記述
欄48の1乃至7行の1乃至3列に記述された入力条件
記号「○」及び「×」がそれぞれそのままの位置で格納
されている。そして、図6に示した表形式回路記述の入
力条件記述欄48の1乃至7行の1乃至3列に、入力条
件記号「○」又は「×」の記述のない位置には「無」が
格納されている。
The first to third columns of the third to ninth rows of the data area are described in the first to third rows of the first to seventh rows of the input condition description column 48 of the tabular circuit description shown in FIG. The input condition symbols “○” and “×” are stored at the same positions. In the input condition description field 48 of the tabular circuit description shown in FIG. 6, in the first to third rows of the first to seventh rows, "absence" is indicated at a position where the input condition symbol "o" or "x" is not described. Is stored.

【0052】上述の10及び11行目、並びに4及び5
列目の未使用部には、特には図示していないが上記使用
部の「無」が格納されている。次に、図10は、出力行
情報格納装置57のデータ領域に格納される出力行情報
の格納状態図である。
Lines 10 and 11 above, and 4 and 5
The unused part in the column stores "absence" of the used part, which is not particularly shown. Next, FIG. 10 is a storage state diagram of the output line information stored in the data area of the output line information storage device 57.

【0053】同図の例では、図6に示した表形式回路記
述の出力記述行41の1行目に記述された出力信号名
「T.SSTIM」及びタイマ設定値「DIABCD
E」が、データ領域の上下2行に格納され、図6に示し
た表形式回路記述の出力記述行41の2行目に記述され
た出力信号名「M.RD−F」及びタイマ設定値「な
し」が、データ領域の次の上下2行に格納され、さら
に、上記出力記述行41の3行目に記述された出力信号
名「M.RD−R」及びタイマ設定値「なし」が、デー
タ領域の次の上下2行に格納されている。
In the example of FIG. 6, the output signal name “T.SSTIM” and the timer setting value “DIABCD” described in the first line of the output description line 41 of the table-type circuit description shown in FIG.
E ”is stored in the upper and lower rows of the data area, and the output signal name“ M.RD-F ”and the timer setting value described in the second row of the output description row 41 of the tabular circuit description shown in FIG. “None” is stored in the next two lines above and below the data area, and the output signal name “M.RD-R” and the timer setting value “None” described in the third line of the output description line 41 are also stored. , Are stored in the next two lines above and below the data area.

【0054】続いて、図11は、入力論理格納装置60
のデータ領域に格納される、表形式回路記述から抽出さ
れ関数型言語に変換された入力論理の格納状態図であ
る。同図の例では、データ領域は8行からなり、図6に
示した表形式回路記述の入力記述行42の入力論理記述
欄47で論理演算の記述がなされなかった入力信号名
「I.RD−EMS」及び「I.RST−COS」が、
表形式回路記述で記述されたと同じデータ領域行にそれ
ぞれ格納され、入力論理記述欄47で論理演算の記述が
なされた入力信号名が、論理演算に加わった最上行の入
力信号に対応する行に、記述された論理が変換されてい
る関数型言語の中のパラメータとして格納されている。
FIG. 11 shows the input logical storage device 60.
FIG. 9 is a storage state diagram of input logic extracted from a table-form circuit description and converted into a functional language, stored in a data area of FIG. In the example shown in the figure, the data area consists of eight lines, and the input signal name “I.RD” for which no logical operation is described in the input logic description column 47 of the input description line 42 of the tabular circuit description shown in FIG. -EMS "and" I. RST-COS "
The input signal names stored in the same data area row as described in the tabular circuit description, and the description of the logical operation is made in the input logical description field 47, are stored in the row corresponding to the input signal of the top row added to the logical operation. Are stored as parameters in the functional language to which the described logic is converted.

【0055】次に、上記構成の実施例の処理動作につい
て、図12乃至図20のフローチャートを用いて説明す
る。なお、この処理では、図8の関数型言語変換装置5
0の特には図示しないCPU(中央演算処理装置)によ
る制御の下に、上記関数型言語変換装置50を構成する
各装置51〜63によって、記憶された表形式回路記述
の関数型言語への変換がなされる。また、図9、図10
及び図11に示した入出力条件格納装置54、出力行情
報格納装置57、及び入力論理格納装置60の各データ
領域は全てクリアされる。
Next, the processing operation of the embodiment having the above configuration will be described with reference to the flowcharts of FIGS. In this processing, the functional language conversion device 5 shown in FIG.
Under the control of a CPU (Central Processing Unit) (not shown), the devices 51 to 63 constituting the functional language conversion device 50 convert the stored table-form circuit description into a functional language. Is made. 9 and FIG.
All the data areas of the input / output condition storage device 54, the output line information storage device 57, and the input logical storage device 60 shown in FIG. 11 are all cleared.

【0056】図12は、全体処理を示すメインフローチ
ャートである。いずれの処理も後述する図13〜図20
で詳述する。まず、図12に示す全体処理では、ステッ
プS121で、入出力条件抽出装置53における入出力
条件の抽出処理が行われ、続いて、ステップS122
で、出力行抽出装置56における出力行情報の抽出処理
が行われ、さらに、ステップS123で、入力論理抽出
装置59における入力論理の抽出処理が行われる。
FIG. 12 is a main flowchart showing the overall processing. 13 to 20 to be described later.
Will be described in detail. First, in the overall processing shown in FIG. 12, in step S121, input / output condition extraction processing in the input / output condition extraction device 53 is performed, and then, in step S122.
Then, output line information extraction processing in the output line extraction device 56 is performed, and further, in step S123, input logic extraction processing in the input logic extraction device 59 is performed.

【0057】そして、ステップS124〜S128で
は、上述した3つの各ステップS121〜S123で抽
出された入出力条件、出力行情報、及び入力論理に基づ
いて、関数型言語への変換処理が行われる。
In steps S124 to S128, conversion to a functional language is performed based on the input / output conditions, output line information, and input logic extracted in each of the above three steps S121 to S123.

【0058】すなわち、ステップS124では、W,
S,R命令作成装置55において、W,S,R命令の作
成処理がなされる。次に、ステップS125では、タイ
マ命令作成装置58において、タイマ命令の作成処理が
行われ、続いて、ステップS126では、&命令作成装
置61において、&命令の作成処理が行われる。引き続
き、ステップS127では、タイマ設定値作成装置62
において、タイマ設定値の作成処理が行われ、さらに、
ステップS128では、出力命令作成装置63におい
て、出力命令の作成処理が行われる。
That is, in step S124, W,
In the S, R instruction creating device 55, processing of creating W, S, R instructions is performed. Next, in step S125, the timer instruction creation device 58 performs a timer instruction creation process. Subsequently, in step S126, the & instruction creation device 61 performs an & instruction creation process. Subsequently, in step S127, the timer setting value creation device 62
In, a process of creating a timer set value is performed.
In step S128, the output instruction creating device 63 performs an output instruction creating process.

【0059】続いて、次の(関数型言語に変換される
表形式回路記述が図6の例であれば出力行45の45−
1、45−2、45−3の順)が検索され、命令(出力
条件)「W」、「S」又は「R」があるか否かが判別さ
れる。そして、いずれかの命令(出力条件)があれば、
ステップS124に戻ってステップS124〜S129
が繰り返えされる。
[0059] Then, the following columns (table format circuit description that is converted to a functional language is output lines 45 in the example of FIG. 6 45-
1, 45-2 , 45-3 ), and it is determined whether or not there is an instruction (output condition) “W”, “S” or “R”. And if there is any instruction (output condition),
Returning to step S124, steps S124 to S129
Is repeated.

【0060】これによって、図8のソース格納装置51
に格納されている図6の表形式回路記述が、図7に示す
関数型言語に変換されて、図8の関数型言語格納装置5
2に格納される。
As a result, the source storage device 51 shown in FIG.
Is converted into the functional language shown in FIG. 7 and the functional language storage device 5 shown in FIG.
2 is stored.

【0061】次に、上記各ステップS121〜S128
の処理について詳細を説明する。図13は上記入出力条
件の抽出処理のフローチャートである。同図において、
入出力条件抽出装置53は、まず、図6の出力条件記述
欄45を列単位に検索して、W,R,S記号とその存在
する行番号を抽出し(ステップS131)、その抽出し
た結果を入出力条件格納装置54の所定のデータ領域に
格納する(ステップS132)
Next, the above steps S121 to S128
The details of the process will be described. FIG. 13 is a flowchart of the input / output condition extraction processing. In the figure,
First, the input / output condition extraction device 53 searches the output condition description field 45 of FIG. 6 in units of columns, extracts W, R, and S symbols and their existing line numbers (step S131), and extracts the extracted result. Is stored in a predetermined data area of the input / output condition storage device 54 (step S132) .

【0062】続いて、同じく図6の今度は入力条件記述
欄48を列単位に検索して「○」、「×」記号とその存
在する行番号を抽出し(ステップS133)、その抽出
した結果を入出力条件格納装置54の所定のデータ領域
に格納する(ステップS134)。
Next, the input condition description field 48 of FIG. 6 is searched in units of columns to extract "O" and "X" symbols and the line numbers where they exist (step S133). Is stored in a predetermined data area of the input / output condition storage device 54 (step S134).

【0063】これにより、例えば図9に示す入出力条件
格納装置54のデータ領域の格納状態が実現される。次
に、図14は、出力行情報の抽出処理のフローチャート
である。
Thus, for example, the storage state of the data area of the input / output condition storage device 54 shown in FIG. 9 is realized. Next, FIG. 14 is a flowchart of an output line information extraction process.

【0064】同図において、出力行抽出装置56は、図
6の出力名記述欄43及びタイマ記述欄44を行単位に
検索し、出力名称及びタイマ設定値を抽出し(ステップ
S141)、その抽出した出力名称及びタイマ設定値
を、出力行情報格納装置57に格納する(ステップS1
42)。
In the figure, the output line extracting device 56 searches the output name description column 43 and the timer description column 44 of FIG. 6 on a line-by-line basis, and extracts an output name and a timer set value (step S141). The output name and the timer set value thus obtained are stored in the output line information storage device 57 (step S1).
42).

【0065】これにより、例えば図10に示す出力行情
報格納装置57のデータ領域の格納状態が実現される。
続いて、図15は、入力論理抽出処理のフローチャート
である。
Thus, for example, the storage state of the data area of the output row information storage device 57 shown in FIG. 10 is realized.
Next, FIG. 15 is a flowchart of the input logic extraction processing.

【0066】同図において、入力論理抽出装置59は、
まず、図6の入力論理記述欄47を行単位に検索し(ス
テップS151)、その検索行に論理記号の最終端が存
在するか否か判別する(ステップS152)。そして、
最終端が存在した場合は、その最終端から論理を追跡
し、その論理を関数型言語に変換し(ステップS15
3)、その変換した関数型言語を入力論理格納装置60
の所定のデータ領域に格納する(ステップS154)。
In the figure, an input logic extraction device 59
First, the input logical description column 47 of FIG. 6 is searched for each line (step S151), and it is determined whether or not the last end of the logical symbol exists in the searched line (step S152). And
If the last end exists, the logic is traced from the last end, and the logic is converted into a functional language (step S15).
3) The converted functional language is input to the input logical storage device 60.
(Step S154).

【0067】一方、上記ステップS152の判別で、検
索行に論理記号が存在しない場合は、入力名記述欄46
の対応する行の入力信号名称を抽出し(ステップS15
6)、その抽出した入力信号名称を入力論理格納装置6
0の所定のデータ領域に格納する(ステップS15
7)。
On the other hand, if it is determined in step S152 that no logical symbol exists in the search line, the input name description field 46
Is extracted (step S15).
6), the extracted input signal name is stored in the input logical storage device 6
0 in a predetermined data area (step S15).
7).

【0068】これにより、例えば図11に示す入力論理
格納装置60のデータ領域の格納状態が実現される。次
に、図16は、W,S,R命令作成処理のフローチャー
トである。
Thus, for example, the storage state of the data area of the input logical storage device 60 shown in FIG. 11 is realized. Next, FIG. 16 is a flowchart of the W, S, R instruction creation processing.

【0069】同図において、W,S,R命令作成装置5
5は、入出力条件格納装置54のデータ領域の、図9に
示す格納状態の1列目から、W,S,R命令の種別(同
図の例では「W」)を抽出し(ステップS161)、そ
の抽出した命令「W」を関数型言語格納装置52の所定
のデータ領域に格納する(ステップS162)。
In the figure, a W, S, R instruction creation device 5
5 extracts the types of the W, S, and R instructions ("W" in the example of FIG. 9) from the first column of the storage state shown in FIG. 9 in the data area of the input / output condition storage device 54 (step S161). ), And stores the extracted instruction “W” in a predetermined data area of the functional language storage device 52 (step S162).

【0070】これにより、図21(a) に示す関数型言語
格納装置52の言語格納の状態が実現される。次に、図
17は、タイマ命令作成処理のフローチャートである。
As a result, the state of language storage in the functional language storage device 52 shown in FIG. 21A is realized. Next, FIG. 17 is a flowchart of the timer instruction creation processing.

【0071】同図において、タイマ命令作成装置58
は、入出力条件格納装置54のデータ領域の、図9に示
す格納状態の1列目に対応する出力行番号(同図の例で
は「1」)を抽出し(ステップS171)、次に、出力
行情報格納装置57のデータ領域の、図10に示す格納
状態の上記抽出した出力行番号(この場合は1列目)に
対応するタイマ設定値があるか否か判別する(ステップ
S172)。この判別で、タイマ設定値があれば、その
タイマ設定値(同図の例では「DIABCDE」)及び
その行の出力信号名称(同図の例では「T.SSTI
M」)を抽出し(ステップS173)、その出力信号名
称「T.SSTIM」に基づいて、タイマ現在値名称
「TRSSTIM」を作成する(ステップS174)。
この処理において、本実施例では、出力信号名称とタイ
マ現在値名称が、図25に示すように1対1に対応して
おり、このアルゴリズムに基づいてタイマ現在値名称が
作成される。
In the figure, a timer instruction creating device 58
Extracts an output row number ("1" in the example of FIG. 9) corresponding to the first column of the storage state shown in FIG. 9 in the data area of the input / output condition storage device 54 (step S171). It is determined whether there is a timer setting value corresponding to the extracted output row number (in this case, the first column) in the data area of the output row information storage device 57 in the storage state shown in FIG. 10 (step S172). In this determination, if there is a timer setting value, the timer setting value (“DIABCDE” in the example of FIG. 3) and the output signal name of the row (“T.SSTI” in the example of FIG. 4).
M ”) (step S173), and based on the output signal name“ T.SSTIM ”, a timer current value name“ TRSSTIM ”is created (step S174).
In this process, in this embodiment, the output signal name and the timer current value name have a one-to-one correspondence as shown in FIG. 25, and the timer current value name is created based on this algorithm.

【0072】続いて、上記作成したタイマ現在値名称
「TRSSTIM」とタイマ命令「TON」を、関数型
言語格納装置52の所定のデータ領域(前回格納した命
令の次のアドレス)に格納する(ステップS175)。
Subsequently, the timer current value name “TRSSTIM” and the timer instruction “TON” created above are stored in a predetermined data area of the functional language storage device 52 (the next address of the previously stored instruction) (step). S175).

【0073】これにより、図21(b) に示す関数型言語
格納装置52の言語格納の状態が実現される。上記ステ
ップS172において、タイマ設定値が存在しない場合
は、ステップS173〜S175の処理は行わず直ちに
処理を終了する。
As a result, the state of language storage in the functional language storage device 52 shown in FIG. 21B is realized. If the timer set value does not exist in step S172, the process ends immediately without performing the processes of steps S173 to S175.

【0074】次に、図18は、&命令作成処理のフロー
チャートである。同図において、&命令作成装置61
は、入出力条件格納装置54のデータ領域を検索し(ス
テップS181)、図9に示す格納状態の列毎に、
「○」又は「×」が複数存在するか否か判別する(ステ
ップS182)。
Next, FIG. 18 is a flowchart of & instruction creation processing. In the figure, & instruction creation device 61
Searches the data area of the input / output condition storage device 54 (step S181), and for each column of the storage state shown in FIG.
It is determined whether there are a plurality of "o" or "x" (step S182).

【0075】この判別で、複数存在すれば、「&」命令
を関数型言語格納装置52の所定のデータ領域に格納し
(ステップS183)、さらに、その「&」命令を格納
したことを記憶して(ステップS184)、次のステッ
プS185に進む。
If there is a plurality of "&" instructions, the && instruction is stored in a predetermined data area of the functional language storage device 52 (step S183), and the fact that the && instruction is stored is stored. (Step S184), and the process proceeds to the next Step S185.

【0076】これにより、図22(a) に示す関数型言語
格納装置52の言語格納の状態が実現される。一方、上
記ステップS182において、検索した列に「○」又は
「×」が1つのみの場合は、ステップS183及びS1
84の処理を行わず、直ちにステップS185に進む。
As a result, the state of language storage in the functional language storage device 52 shown in FIG. On the other hand, in step S182, if there is only one “「 ”or“ × ”in the searched column, steps S183 and S1
The process directly proceeds to step S185 without performing the process of S84.

【0077】ステップS185では、入出力条件格納装
置54のデータ領域を検索して(ステップS185)、
図9に示す格納状態の列に「○」又は「×」のある行番
号を抽出し、その抽出した行番号に対応する入力名称
(オペランド)を、入力論理格納装置60の図11に示
す格納状態から抽出し、その抽出した入力名称(オペラ
ンド)を関数型言語格納装置52の所定のデータ領域に
格納する(ステップS186)。
In step S185, the data area of the input / output condition storage device 54 is searched (step S185).
A row number having “○” or “×” in the column of the storage state shown in FIG. 9 is extracted, and an input name (operand) corresponding to the extracted row number is stored in the input logical storage device 60 shown in FIG. It is extracted from the state, and the extracted input name (operand) is stored in a predetermined data area of the functional language storage device 52 (step S186).

【0078】次に、上記列から抽出された入力条件が信
号の反転を示す「×」であったか否か判別し(ステップ
S187)、「×」であれば、続いて上記格納した入力
名称(オペランド)がアトムであるか否か判別する(ス
テップS188)。本実施例では、オペランドが入力信
号名称であるとき(図11の1行目及び4行目参照)、
これをアトムと称し、一方、オペランドが関数(図11
の2行目及び5行目参照)であるときは、これをリスト
と称する。
Next, it is determined whether or not the input condition extracted from the column is "x" indicating signal inversion (step S187). If "x", then the stored input name (operand ) Is an atom (step S188). In this embodiment, when the operand is the input signal name (see the first and fourth lines in FIG. 11),
This is called an atom, while the operand is a function (FIG. 11).
Is referred to as a list).

【0079】上記判別で、格納したオペランドがアトム
であれば、そのオペランドの先頭に反転を表す「!」を
付加して(ステップS189)、処理を終了する。一
方、上記判別で、格納したオペランドがリストのとき
は、続いて、そのリスト(オペランド)の関数名が反転
命令の「NOT」であるか否か判別する(ステップS1
90)。
If it is determined that the stored operand is an atom, "!" Indicating inversion is added to the head of the operand (step S189), and the processing is terminated. On the other hand, if the stored operand is a list in the above determination, subsequently, it is determined whether or not the function name of the list (operand) is "NOT" of the inversion instruction (step S1).
90).

【0080】この判別で、関数名が「NOT」であれ
ば、その「NOT」関数を取り除くことにより、その反
転命令「NOT」をさらに反転させて(ステップS19
1)、処理を終了する。
In this determination, if the function name is "NOT", the "NOT" function is removed to further invert the inversion command "NOT" (step S19).
1), end the process.

【0081】一方、上記判別で、関数名が「NOT」で
ないときは、そのリストを「(NOT )」でくくっ
て「NOT」関数として値を反転させる(ステップS1
92)。 さらに、前述した&命令作成処理において&命
令の作成が記憶されていれば、その&命令「(&」の終
了を示す「)」を続いて格納する(ステップS19
3)。なお、&命令が作成されていなかった場合は、ス
テップS193は行なわず直ちに処理を終了する。
[0081] On the other hand, in the above determination, if the function name is not "NOT", Ru inverts the value that list enclosed in "(NOT)" as the "NOT" function (Step S1
92). In addition, in the &
If the creation of the order is memorized, the end of the & instruction "(&"
Is stored subsequently (step S19).
3). If the & instruction has not been created,
The process ends immediately without performing step S193.

【0082】これにより、図22(b) に示す関数型言語
格納装置52の言語格納の状態が実現される。続いて、
図19は、タイマ設定値作成処理のタイムチャートであ
る。
As a result, the state of language storage in the functional language storage device 52 shown in FIG. continue,
FIG. 19 is a time chart of the timer setting value creation process.

【0083】同図において、タイマ設定値作成装置62
は、出力行情報格納装置57の、図10に示す格納状態
を検索し、処理中の行にタイマ設定値名称が存在するか
否か判別する(ステップS195)。そして、タイマ設
定値名称が存在すれば、次に、そのタイマ設定値(同図
の例では「DIABCDE」)を、関数型言語格納装置
52の所定のデータ領域に格納する(ステップS19
6)。
In the figure, a timer set value creation device 62
Retrieves the storage state shown in FIG. 10 in the output line information storage device 57, and determines whether or not the timer set value name exists in the line being processed (step S195). Then, if the timer set value name exists, the timer set value (“DIABCDE” in the example of the figure) is stored in a predetermined data area of the functional language storage device 52 (step S19).
6).

【0084】また、上記ステップS195で、タイマ設
定値名称が存在しない場合は、直ちに処理を終了する。
これにより、上記ステップS196が行われた場合は、
図23に示す関数型言語格納装置52の言語格納の状態
が実現される。
If the timer set value name does not exist in step S195, the process ends immediately.
Thereby, when the above step S196 is performed,
The language storage state of the functional language storage device 52 shown in FIG. 23 is realized.

【0085】次に図20は、出力命令作成処理のフロー
チャートである。同図において、出力命令作成装置63
は、出力行情報格納装置57から処理中の行の出力信号
名称(この例の場合は「T.SSTIM」)を抽出し、
その出力信号名称を、関数型言語格納装置52の所定の
データ領域に格納して(ステップS201)、処理を終
了する。
FIG. 20 is a flowchart of the output instruction creation process. Referring to FIG.
Extracts the output signal name (“T.SSTIM” in this example) of the row being processed from the output row information storage device 57,
The output signal name is stored in a predetermined data area of the functional language storage device 52 (step S201), and the process ends.

【0086】これにより、図24に示す関数型言語格納
装置52の言語格納の状態が実現される。このようにし
て、図12に示す全体処理のステップS124〜S12
8により、図9に示す入出力条件格納装置54の格納状
態の、1列目の入力と出力の対応関係が言語変換され、
続いてステップS124〜S128が繰り返されて、2
列目及び3列目についても変換が行われ、図6の表形式
回路記述から変換された図7に示した関数型言語が関数
型言語格納装置52に格納される。
Thus, the state of language storage in the functional language storage device 52 shown in FIG. 24 is realized. In this way, steps S124 to S12 of the overall process shown in FIG.
8, the correspondence between the input and output in the first column in the storage state of the input / output condition storage device 54 shown in FIG.
Subsequently, steps S124 to S128 are repeated, and 2
The column and the third column are also converted, and the functional language shown in FIG. 7 converted from the tabular circuit description in FIG. 6 is stored in the functional language storage device 52.

【0087】最後に、図26に、本実施例により記述さ
れた条件表(表形式回路記述)を表示させて行うオンラ
インモニタの例を示す。同図において、入力信号名称
(又は出力信号名称)記述欄、及び入力条件(又は出力
条件)記述欄において、斜線、又は「●」で示す部分
は、信号がONしていることを表している。これによっ
て、出力信号がONしていないときは、対応する列を検
索することにより瞬時に欠落した条件を発見することが
できる。
Finally, FIG. 26 shows an example of an online monitor which displays a condition table (circuit description in table format) described according to this embodiment. In the figure, in the input signal name (or output signal name) description field and the input condition (or output condition) description field, a hatched portion or a portion indicated by “●” indicates that the signal is ON. . Thus, when the output signal is not ON, the missing condition can be found instantaneously by searching the corresponding column.

【0088】[0088]

【発明の効果】上述したように、本発明によれば、表形
式により独特の記号を用いて論理回路を簡単に記述する
ことができるので、条件表では従来不可能であった論理
の複雑な回路や遅延動作(タイマ)を含む回路の記述も
可能となり、また、表形式であるためラダー図に比較し
て極めて可読性に優れ且つ記述が容易であり、したがっ
て、初心者でも複雑な論理回路を容易に作成することが
可能となる。
As described above, according to the present invention, a logic circuit can be easily described by using a unique symbol in a table format. Circuits and circuits including delay operations (timers) can be described, and since they are in table format, they are extremely readable and easy to describe as compared to ladder diagrams, so even beginners can easily write complex logic circuits. Can be created.

【0089】また、表形式記述を用いたオンラインモニ
タを行うことにより、条件欠落によるプログラムの欠陥
が極めて容易に発見できるため、初心者でも複雑な論理
回路のデバッグが可能となる。
[0089] Further, by performing online monitoring using tabular description, since the defects of the program by the condition missing it can very easily found, it is possible to debug complex logic circuits for beginners.

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

【図1】本発明の回路記述用の表形式を説明する図であ
る。
FIG. 1 is a diagram illustrating a table format for describing a circuit according to the present invention.

【図2】本発明の表形式回路記述に用いる記号を説明す
る図である。
FIG. 2 is a diagram illustrating symbols used for describing a circuit in a table format according to the present invention.

【図3】本発明のブロック図である。FIG. 3 is a block diagram of the present invention.

【図4】条件表では従来記述不可能な論理回路を本発明
の表形式で記述した例を示す図である。
FIG. 4 is a diagram showing an example in which a logic circuit that cannot be described conventionally in a condition table is described in a table format of the present invention.

【図5】条件表では従来記述不可能な論理回路を本発明
の表形式で記述した例を示す図である。
FIG. 5 is a diagram showing an example in which a logic circuit that cannot be described conventionally in a condition table is described in a table format of the present invention.

【図6】論理の深い回路を記述した本発明の表形式の例
を説明する図である。
FIG. 6 is a diagram for explaining an example of a table format of the present invention in which a deep logic circuit is described.

【図7】関数型言語を説明する図である。FIG. 7 is a diagram illustrating a functional language.

【図8】一実施例の関数型言語変換装置のブロック図で
ある。
FIG. 8 is a block diagram of a functional language converter according to one embodiment.

【図9】入出力条件格納装置のデータ領域状態図であ
る。
FIG. 9 is a data area state diagram of the input / output condition storage device.

【図10】出力行情報格納装置のデータ領域状態図であ
る。
FIG. 10 is a data area state diagram of the output row information storage device.

【図11】入力論理格納装置のデータ領域状態図であ
る。
FIG. 11 is a data area state diagram of the input logical storage device.

【図12】全体処理のフローチャートである。FIG. 12 is a flowchart of an overall process.

【図13】入出力条件の抽出処理のフローチャートであ
る。
FIG. 13 is a flowchart of an input / output condition extraction process.

【図14】出力行情報の抽出処理のフローチャートであ
る。
FIG. 14 is a flowchart of an output line information extraction process.

【図15】入力論理の抽出処理のフローチャートであ
る。
FIG. 15 is a flowchart of an input logic extraction process.

【図16】W,S,R命令作成処理のフローチャートで
ある。
FIG. 16 is a flowchart of a W, S, R instruction creation process.

【図17】タイマ命令作成処理のフローチャートであ
る。
FIG. 17 is a flowchart of a timer instruction creation process.

【図18】&命令作成処理のフローチャートである。FIG. 18 is a flowchart of & instruction creation processing.

【図19】タイマ設定値作成処理のフローチャートであ
る。
FIG. 19 is a flowchart of a timer setting value creation process.

【図20】出力命令作成処理のフローチャートである。FIG. 20 is a flowchart of an output instruction creation process.

【図21】(a),(b) は関数型言語格納装置のデータ領域
に格納された関数型言語を説明する図である。
FIGS. 21A and 21B are diagrams illustrating a functional language stored in a data area of a functional language storage device.

【図22】(a),(b) は関数型言語格納装置のデータ領域
に格納された関数型言語を説明する図である。
FIGS. 22A and 22B are diagrams illustrating a functional language stored in a data area of a functional language storage device.

【図23】関数型言語格納装置のデータ領域に格納され
た関数型言語を説明する図である。
FIG. 23 is a diagram illustrating a functional language stored in a data area of the functional language storage device.

【図24】関数型言語格納装置のデータ領域に格納され
た関数型言語を説明する図である。
FIG. 24 is a diagram illustrating a functional language stored in a data area of the functional language storage device.

【図25】出力信号名称とそのタイマ現在値との関係を
説明する図である。
FIG. 25 is a diagram illustrating the relationship between an output signal name and its current timer value.

【図26】オンラインモニタ時の表示例を示す図であ
る。
FIG. 26 is a diagram illustrating a display example during online monitoring.

【図27】ラダー回路図の例を示す図である。FIG. 27 is a diagram illustrating an example of a ladder circuit diagram.

【図28】従来の条件表の例を示す図である。FIG. 28 is a diagram showing an example of a conventional condition table.

【図29】真偽値表の図(その1)である。FIG. 29 is a diagram (No. 1) of a truth value table.

【図30】真偽値表の図(その2)である。FIG. 30 is a diagram (No. 2) of a truth table.

【図31】論理回路の例を示す図である。FIG. 31 illustrates an example of a logic circuit.

【図32】ラダー図の例を示す図である。FIG. 32 is a diagram showing an example of a ladder diagram.

【図33】論理回路の例を示す図である。FIG. 33 is a diagram illustrating an example of a logic circuit.

【図34】条件表を示す図である。FIG. 34 is a diagram showing a condition table.

【図35】論理回路の例を示す図である。FIG. 35 is a diagram illustrating an example of a logic circuit.

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

1 出力記述行 2 入力記述行 3 回路記憶手段 4 言語記憶手段 5 入出力条件抽出記憶手段 6 入出力命令作成手段 7 出力情報抽出記憶手段 8 タイマ命令作成手段 9 入力論理抽出記憶手段 10 &命令作成手段 11 タイマ設定値作成手段 12 出力命令作成手段 a 出力名記述欄 b タイマ記述欄 c 出力条件記述欄 e 入力名記述欄 f 入力論理記述欄 g 入力条件記述欄 1 output description line 2 input description line 3 circuit storage means 4 language storage means 5 input / output condition extraction storage means 6 input / output instruction creation means 7 output information extraction storage means 8 timer instruction creation means 9 input logic extraction storage means 10 & instruction creation Means 11 Timer setting value creating means 12 Output instruction creating means a Output name description field b Timer description field c Output condition description field e Input name description field f Input logic description field g Input condition description field

───────────────────────────────────────────────────── フロントページの続き (72)発明者 阿部 正 東京都日野市富士町1番地 富士ファコ ム制御株式会社内 (72)発明者 丸山 吉晴 東京都日野市富士町1番地 富士ファコ ム制御株式会社内 (56)参考文献 特開 昭62−295109(JP,A) 特開 平3−113505(JP,A) (58)調査した分野(Int.Cl.7,DB名) G05B 19/04 - 19/05 ──────────────────────────────────────────────────続 き Continuing on the front page (72) Inventor Tadashi Abe 1 Fujimachi, Hino-shi, Tokyo Fujifacom Control Co., Ltd. (72) Inventor Yoshiharu Maruyama 1 Fujimachi, Hino-shi, Tokyo Fujifacom Control Ltd. (56) References JP-A-62-295109 (JP, A) JP-A-3-113505 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) G05B 19/04-19 / 05

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 プログラマブルコントローラ(以下、P
Cと称す)のための回路図を表形式で記述する機能を有
する表形式回路記述装置であって、 複数の出力記述行に記述するための出力記述機能(1)
と、前記出力に対応する複数の入力記述行に記述するた
めの入力記述機能(2)とからなり、 前記出力記述機能(1)には 出力信号の名称を記述する出力名称入力手段(a)と、 タイマ設定値を記述するタイマ入力手段(b)と、 出力条件を記述する出力条件入力手段(c)と、 コメントを記述するコメント入力手段(d)とを設け、 前記入力記述機能(2)には 入力信号の名称を記述する入力名称入力手段(e)と、信号の入力を意味する入力記号と、信号の反転入力を意
味する入力反転記号と、入力された信号の論理和を意味
する論理和記号と、入力された信号の論理積を意味する
論理積記号と、からなる記号のいずれかを入力する入力
論理入力手段(f)と、 前記入力名称入力手段(e)の入力信号または前記入力
論理入力手段(f)で入力された論理演算の演算結果を
使用することを意味する正論理記号と、前記入力名称入
力手段(e)の入力信号または前記入力論理入力手段
(f)で入力された論理演算の演算結果を反転して使用
することを意味する負論理記号と、からなる入力条件を
入力する入力条件入力手段(g)と、 コメントを入力するコメント入力手段(h)とを設け、 前記出力条件入力手段(c)は、 前記入力条件入力手段(g)から入力された正論理記号
または負論理記号の論理積を出力信号に代入することを
意味するライト記号と、前記入力条件入力手段(g)か
ら入力された正論理記号または負論理記号の論理積が真
のとき出力信号をオンにし偽のとき無処理にすることを
意味するセット信号と、前記入力条件入力手段(g)か
ら入力された正論理記号または負論理記号の論理積が真
のとき出力信号をオフにし偽のとき無処理を意味するリ
セット信号と、からなる信号のう ちいずれかが入力され
る、 ことを特徴とする表形式回路記述装置
1. A programmable controller (hereinafter referred to as P
Have the functions described a circuit diagram for the referred to as C) in a tabular form
A tabular circuit description apparatus, output descriptor function for describing the plurality of output lines described (1)
Described in a plurality of input description lines corresponding to the output.
The output description function (1) includes an output name input means (a) for describing the name of an output signal, and a timer input means (b) for describing a timer set value. Output condition input means (c) for describing an output condition , and comment input means (d) for describing a comment. The input description function (2) includes an input name input for describing a name of an input signal. Means (e), an input symbol meaning signal input, and an inverted signal input.
Means the inverted input symbol and the logical sum of the input signal
And the logical product of the input signal
An input to input either a logical AND symbol or a symbol consisting of
A logic input means (f) and an input signal of the input name input means (e) or the input signal
The operation result of the logical operation input by the logical input means (f) is
Use a positive logic symbol that means to use
Input signal of input means (e) or said input logic input means
Invert and use the operation result of the logical operation input in (f)
Input condition consisting of a negative logic symbol
An input condition input means (g) for inputting and a comment input means (h) for inputting a comment are provided, and the output condition input means (c) includes a positive logical symbol input from the input condition input means (g).
Or assigning the logical product of negative logic symbols to the output signal.
Meaning light symbol and the input condition input means (g)
The logical product of the positive and negative logical symbols input from
Turn on the output signal when
Meaning set signal and the input condition input means (g)
The logical product of the positive and negative logical symbols input from
The output signal is turned off when
And a set signal, or become signal sac Chiizure from is input
That, tabular circuit description and wherein the.
【請求項2】 PCのための回路図を表形式で記述した
表形式回路記述言語を関数型言語に変換する関数型言語
変換装置であって、 表形式回路記述言語 を記憶する回路記憶手段(3)と、 該回路記憶手段(3)に記憶されている表形式回路記述
言語から変換された関数型言語を記憶する言語記憶手段
(4)と、 前記回路記憶手段(3)に記憶されている表形式回路記
述言語の複数の出力記述行(1)の出力条件記述欄
(c)から出力条件を抽出し、複数の入力記述行(2)
の入力条件記述欄(g)から入力条件を抽出してそれぞ
れ記憶する入出力条件抽出記憶手段(5)と、 該入出力条件抽出記憶手段(5)から前記入力条件及び
出力条件を読み出し、その読み出した入力条件及び出力
条件を関数型言語の入力条件及び出力条件にそれぞれ変
換して前記言語記憶手段(4)の所定領域に格納する入
出力命令作成手段(6)と、 前記回路記憶手段(3)に記憶されている表形式回路記
述言語の出力名記述欄(a)から出力名称を抽出し、タ
イマ記述欄(b)からタイマ設定値を抽出してそれぞれ
出力情報として記憶する出力情報抽出記憶手段(7)
と、 該出力情報抽出記憶手段(7)から読み出した前記出力
名称と前記タイマ設定値に基づいて関数型言語のタイマ
命令とタイマ値名称とに変換して前記言語記憶手段
(4)の所定領域に格納するタイマ命令作成手段(8)
と、 前記回路記憶手段(3)に記憶されている表形式回路記
述言語の論理記述欄(f)から入力論理を抽出し関数型
言語に変換して記憶する入力論理抽出記憶手段(9)
と、 該入力論理抽出記憶手段(9)から読み出した前記入力
論理及び前記入出力条件抽出記憶手段(5)から読み出
した前記入力条件と出力条件に基づいて関数型言語の&
命令を作成し、その&命令を前記言語記憶手段(4)の
所定領域に格納すると共に、&命令を作成したことを記
憶する&命令作成手段(10)と、前記出力情報抽出記
憶手段(7)からタイマ設定値を読み出しそのタイマ設
定値を前記言語記憶手段(4)の所定位置に格納する
共に、前記&命令作成手段(10)により作成したこと
を記憶されている&命令に対応する命令終了コードを格
納するタイマ設定値作成手段(11)と、 前記の出力情報抽出記憶手段(7)から出力名称を読み
出してその出力名称を前記言語記憶手段(4)の所定位
置に格納する出力命令作成手段(12)と、 を有することを特徴とする関数型言語変換装置
2. A circuit diagram for a PC is described in a table format.
A functional language conversion apparatus for converting a tabular circuit description language functional language, the table being stored with the circuit storage unit that stores a table format circuit description language (3), to the circuit storage unit (3) Formal circuit description
A language storage unit (4) for storing a functional language converted from a language; and a tabular circuit description stored in the circuit storage unit (3).
An output condition is extracted from the output condition description field (c) of a plurality of output description lines (1) of the predicate language , and a plurality of input description lines (2) are extracted.
Input / output condition extraction storage means (5) for extracting input conditions from the input condition description field (g) and storing the input conditions, respectively; and reading the input conditions and output conditions from the input / output condition extraction storage means (5). An input / output instruction creating unit (6) for converting the read input condition and output condition into a functional language input condition and output condition, respectively, and storing them in a predetermined area of the language storage unit (4); Table format circuit description stored in 3)
Output information extraction storage means (7) for extracting an output name from an output name description field (a) of a predicate language , extracting a timer set value from a timer description field (b), and storing each as output information;
When a predetermined region of the converting the said output name read from the output information extracting storage means (7) in accordance with the timer setting value to the timer instruction and the timer value name of functional languages verbal memory means (4) Timer instruction creation means to be stored in the memory (8)
And a tabular circuit description stored in the circuit storage means (3).
Input logic extraction storage means (9) for extracting input logic from a logic description field (f) of a predicate language , converting the input logic into a functional language, and storing it
Based on the input logic read from the input logic extraction storage means (9) and the input conditions and output conditions read from the input / output condition extraction storage means (5),
Create an instruction, the & stores instructions in a predetermined area of the language storage unit (4), and stores the instruction to create a & instruction creating means (10), before Kide force information extracting storage means (7) from the read timer setting value when storing the timer setting value to a predetermined position before Symbol verbal memory means (4)
Both were created by the & instruction creation means (10)
Stores the instruction end code corresponding to the stored & instruction.
And pay timer setting value generating means (11), output command creating means for storing the output name reads output names from the output information extracting storage means (7) in a predetermined position of the verbal memory means (4) ( 12) A functional language conversion device comprising:
【請求項3】(3) プログラマブルコントローラ(以下、PProgrammable controller (hereinafter P
Cと称す)のための回路図を表形式で記述する表形式回C) in a tabular format that describes the circuit diagram in tabular format.
路記述方法であって、Road description method, 複数の出力記述行に記述する出力記述ステップ(1)Output description step described in multiple output description lines (1)
と、前記出力に対応する複数の入力記述行に記述するたDescribed in a plurality of input description lines corresponding to the output.
めの入力記述ステップ(2)とからなり、Input description step (2), 前記出力記述ステップ(1)は、The output description step (1) comprises: 出力信号の名称を記述する出力名称入力ステップ(a)Output name input step (a) for describing the name of the output signal
と、When, タイマ設定値を記述するタイマ入力ステップ(b)と、A timer input step (b) for describing a timer set value; 出力条件を記述する出力条件入力ステップ(c)と、An output condition input step (c) for describing an output condition; コメントを記述するコメント入力ステップ(d)とからFrom the comment input step (d) that describes the comment
なり、Become 前記入力記述ステップ(2)は、The input description step (2) includes: 入力信号の名称を記述する入力名称入力ステップ(e)Input name input step (e) for describing the name of the input signal
と、When, 信号の入力を意味する入力記号と、信号の反転入力を意Input symbol for signal input and inverted signal input
味する入力反転記号と、入力された信号の論理和を意味Means the inverted input symbol and the logical sum of the input signal
する論理和記号と、入力された信号の論理積を意味するAnd the logical product of the input signal
論理積記号と、からなる記号のいずれかを入力する入力An input to input either a logical AND symbol or a symbol consisting of
論理入力ステップ(f)と、A logical input step (f); 前記入力名称入力ステップ(e)で入力された入力信号The input signal input in the input name input step (e)
または前記入力論理入力ステップ(f)で入力された論Or the logic input in the input logic input step (f)
理演算の演算結果を使用することを意味する正論理記号Positive logic symbol meaning that the operation result of the logical operation is used
と、前記入力名称入力手段(e)の入力信号または前記And the input signal of the input name input means (e) or
入力論理入力手段(f)で入力された論理演算の演算結The operation result of the logical operation input by the input logical input means (f)
果を反転して使用することを意味する負論理記号と、かNegative logic sign, meaning that the result is used inverted
らなる入力条件を入力する入力条件入力ステップ(g)Input condition input step (g) for inputting input conditions consisting of
と、When, コメントを入力するコメント入力ステップ(h)とからFrom the comment input step (h) for inputting comments
なり、Become 前記出力条件入力ステップ(c)は、The output condition input step (c) includes: 前記入力条件入力ステップ(g)で入力された正論理記The positive logical notation input in the input condition input step (g)
号または負論理記号のSign or negative logical sign 論理積を出力信号に代入することSubstituting logical product into output signal
を意味するライト記号と、前記入力条件入力手段(g)And the input condition input means (g)
で入力された正論理記号または負論理記号の論理積が真The logical product of the positive logical symbol or negative logical symbol input in
のとき出力信号をオンにし偽のとき無処理にすることをTurn on the output signal when
意味するセット信号と、前記入力条件入力手段(g)でThe set signal meaning and the input condition input means (g).
入力された正論理記号または負論理記号の論理積が真のThe logical product of the input positive logical symbol or negative logical symbol is true.
とき出力信号をオフにし偽のとき無処理を意味するリセWhen the output signal is turned off and false,
ット信号と、からなる信号のうちいずれかが入力されOne of the signals consisting of
る、, ことを特徴とする表形式回路記述方法。A circuit description method in a tabular form, characterized in that:
【請求項4】(4) PCのための回路図を表形式で記述したThe circuit diagram for PC was described in the table format.
表形式回路記述言語を関数型言語に変換する関数型言語A functional language that converts a tabular circuit description language into a functional language
変換方法であって、A conversion method, 表形式回路記述言語を記憶する回路記憶手順(3)と、A circuit storage procedure (3) for storing a tabular circuit description language; 該回路記憶手順(3)で記憶されている表形式回路記述Tabular circuit description stored in the circuit storage procedure (3)
言語から変換された関数型言語を記憶する言語記憶手順A language storage procedure for storing a functional language converted from a language
(4)と、(4) and 前記回路記憶手順(3)で記憶されている表形式回路記Tabular circuit description stored in the circuit storage procedure (3)
述言語の複数の出力記述行(1)の出力条件記述欄Output condition description field of multiple output description lines (1) of predicate language
(c)から出力条件を抽出し、複数の入力記述行(2)The output condition is extracted from (c), and a plurality of input description lines (2)
の入力条件記述欄(g)から入力条件を抽出してそれぞExtract the input conditions from the input condition description field (g) of
れ記憶する入出力条件抽出記憶手順(5)と、Input / output condition extraction and storage procedure (5) for storing and storing; 該入出力条件抽出記憶手順(5)で記憶されている前記The input / output condition extraction and storage procedure (5)
入力条件及び出力条件を読み出し、その読み出した入力Read the input condition and output condition, and read the input
条件及び出力条件を関数型言語の入力条件及び出力条件Conditions and output conditions are input and output conditions of functional language
にそれぞれ変換して前記言語記憶手順(4)の所定領域To the predetermined area of the language storage procedure (4).
に格納する入出力命令作成手順(6)と、I / O instruction creation procedure (6) to be stored in 前記回路記憶手順(3)で記憶されている表形式回路記Tabular circuit description stored in the circuit storage procedure (3)
述言語の出力名記述欄(a)から出力名称を抽出し、タThe output name is extracted from the output name description field (a) of the predicate language,
イマ記述欄(b)からタイマ設定値を抽出してそれぞれExtract the timer setting value from the description field (b)
出力情報として記憶する出力情報抽出記憶手順(7)Output information extraction and storage procedure for storing as output information (7)
と、When, 該出力情報抽出記憶手順(7)で記憶されている前記出The output stored in the output information extraction storage procedure (7)
力名称と前記タイマ設定値を読み出して、この読み出しRead the input name and the timer set value,
た前記出力名称と前記タイマ設定値に基づいて関数型言Function type word based on the output name and the timer set value.
語のタイマ命令とタイマ値名称とに変換して前記言語記Into a language timer instruction and a timer value name
憶手順で記憶する所定領域に格納するタイマ命令作成手Timer instruction creation procedure to store in a predetermined area
順(8)と、Order (8), 前記回路記憶手順(3)で記憶されている表形式回路記Tabular circuit description stored in the circuit storage procedure (3)
述言語の論理記述欄(f)から入力論理を抽出し関数型Extract input logic from logic description field (f) of predicate language
言語に変換して記憶する入力論理抽出記憶手順Input logic extraction and storage procedure for converting to language and storing (9)(9)
と、When, 該入力論理抽出記憶手順(9)で記憶されている前記入The input logic stored in the input logic extraction storage procedure (9)
力論理及び前記入出力条件抽出記憶手順(5)で記憶さForce logic and stored in the input / output condition extraction storage procedure (5).
れている前記入力条件と出力条件に基づいて関数型言語Functional language based on said input and output conditions
の&命令を作成し、その&命令を前記言語記憶手順Create & instruction and store the & instruction in the language storage procedure
(4)の所定領域に格納すると共に、&命令を作成した(4) Stored in a predetermined area and created & instruction
ことを記憶する&命令作成手順(10)と、And a command creation procedure (10) for storing 前記出力情報抽出記憶手順(7)で記憶されているタイThe tie stored in the output information extraction storage procedure (7)
マ設定値を読み出しそのタイマ設定値を前記言語記憶手Reads the timer setting and stores the timer setting in the language storage
順(4)で記憶する所定位置に格納すると共に、前記&Stored in a predetermined position stored in the order (4),
命令作成手順(10)で作成したことを記憶されているThe fact that it was created in the instruction creation procedure (10) is stored.
&命令に対応する命令終了コードを格納するタイマ設定Set timer to store instruction end code corresponding to & instruction
値作成手順(11)と、Value creation procedure (11), 前記の出力情報抽出記憶手順(7)で記憶されている前Before being stored in the output information extraction storage procedure (7)
記出力名称を読み出してその出力名称を前記言語記憶手And reads the output name and stores the output name in the language storage
順(4)で記憶する所定位置に格納する出力命令作成手Steps for creating an output instruction stored in a predetermined position stored in order (4)
順(12)と、Order (12), を有することを特徴とする関数型言語変換方法。A functional language conversion method comprising:
【請求項5】(5) 前記表形式回路記述言語は、プログラマThe tabular circuit description language is a programmer
ブルコントローラのための回路図を表形式で記述する表Table that describes the circuit diagram for the cable controller in tabular format
形式回路記述言語であって、A formal circuit description language, 出力を記述するための複数の出力記述行(1)と、前記A plurality of output description lines (1) for describing an output;
出力に対応する入力を記述するための複数の入力記述行Multiple input description lines to describe the input corresponding to the output
(2)とからなり、(2) 前記出力記述行(1)には出力信号の名称を記述する出The output description line (1) contains an output describing the name of the output signal.
力名記述欄(a)と、タイマ設定値を記述するタイマ記Input field (a) and timer description that describes the timer setting value
述欄(b)と、出力条件を記述する出力条件記述欄Column (b) and an output condition description column for describing the output condition
(c)と、コメントを記述するコメント記述欄(d)と(C) and a comment description field (d) for describing a comment.
を設け、Is established, 前記入力記述行(2)には入力信号の名称を記述する入The input description line (2) contains an input describing the name of the input signal.
力名記述欄(e)と、入力論理を記述する入力論理記述Input name description field (e) and input logic description describing input logic
欄(f)と、入力条件を記述する入力条件記述欄(g)Column (f) and input condition description column (g) describing input conditions
と、コメントを記述するコメント記述欄(h)とを設けAnd a comment description field (h) for writing comments
て、hand, 前記入力論理記述欄(f)に記述するための、信号の入A signal input for writing in the input logic description field (f)
力を意味する入力記号と、信号の反転入力を意味する入Input symbol for force and input for inverted signal input.
力反転記号と、入力された信号の論理和を意味する論理Logic that means the logical sum of the power inversion symbol and the input signal
和記号と、入力された信号の論理積を意味する論理積記Logical notation that means the logical product of the sum symbol and the input signal
号とを有し、No. and 前記入力条件記述欄(g)に記述するための、前記入力The input for describing in the input condition description field (g)
名記述欄(e)の入力信号又は前記入力論理記述欄Input signal in the name description field (e) or the input logic description field
(f)の演算結果を使用することを意味する正論理記号Positive logic symbol meaning that the operation result of (f) is used
と、前記入力名記述欄(e)の入力信号又は前記入力論And the input signal of the input name description field (e) or the input theory
理記述欄(f)の演Performance of the description field (f) 算結果を反転して使用することを意Inverts the result of the calculation
味する負論理記号とを有し、Having a negative logic sign to taste, 前記出力条件記述欄(c)に記述するための、前記入力The input for describing in the output condition description column (c)
条件記述欄(g)の正論理記号又は負論理記号の論理積Logical product of the positive and negative logical symbols in the condition description field (g)
を出力信号に代入することを意味するライト記号と、前To the output signal,
記入力条件記述欄(g)の正論理記号又は負論理記号のOf the positive logical symbol or the negative logical symbol in the input condition description field (g).
論理積が真のとき出力信号をオンにし偽のとき無処理にTurn on the output signal when the logical product is true, and leave it unprocessed when the logical product is false
することを意味するセット記号と、前記入力条件記述欄And the input symbol description field
(g)の正論理記号又は負論理記号の論理積が真のときWhen the logical product of the positive and negative logical symbols in (g) is true
出力信号をオフにし偽のとき無処理を意味するリセットReset the output signal to OFF, meaning no processing when false
記号とを有する、With a sign, ことを特徴とする請求項4記載の関数型言語変換方法。5. The method according to claim 4, wherein:
【請求項6】6. 前記表形式回路記述言語は、前記入力論The tabular circuit description language is based on the input theory.
理記述欄(f)に記述する前記信号の入力を意味する入Input meaning the input of the signal described in the logical description field (f).
力記号を矢印で表し、前記信号の反転入力を意味する入The force symbol is represented by an arrow, indicating that the input is the inverse of the signal.
力反転記号を中央に黒丸を付加された矢印で表し、論理The force reversal symbol is represented by an arrow with a black circle added in the center, and
和を意味する前記論理和記号を縦一本の線で表し、前記The logical sum symbol signifying the sum is represented by a single vertical line,
論理積を意味する論理積記号を平行する縦二本の線で表The logical product symbol that represents logical product is represented by two vertical lines in parallel.
し、前記出力条件記述欄(c)に記述する前記ライト記The write condition described in the output condition description column (c) is described.
号を「W」で表し、前記セット記号を「S」で表し、前Symbol is represented by "W" and the set symbol is represented by "S".
記リセット記号を「R」で表し、The reset symbol is represented by "R", 前記入力条件記述欄The input condition description field
(g)に記述する前記正論理記号を「○」で表し、前記The positive logic symbol described in (g) is represented by “○”, and
負論理記号を「×」で表す、The negative logic symbol is represented by "x". ことを特徴とする請求項5記載の関数型言語変換方法。6. The functional language conversion method according to claim 5, wherein:
JP04297329A 1992-11-06 1992-11-06 Tabular circuit description device and method, and functional language conversion device and method Expired - Fee Related JP3124131B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP04297329A JP3124131B2 (en) 1992-11-06 1992-11-06 Tabular circuit description device and method, and functional language conversion device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP04297329A JP3124131B2 (en) 1992-11-06 1992-11-06 Tabular circuit description device and method, and functional language conversion device and method

Publications (2)

Publication Number Publication Date
JPH06149311A JPH06149311A (en) 1994-05-27
JP3124131B2 true JP3124131B2 (en) 2001-01-15

Family

ID=17845110

Family Applications (1)

Application Number Title Priority Date Filing Date
JP04297329A Expired - Fee Related JP3124131B2 (en) 1992-11-06 1992-11-06 Tabular circuit description device and method, and functional language conversion device and method

Country Status (1)

Country Link
JP (1) JP3124131B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7096078B2 (en) * 2003-05-30 2006-08-22 Fisher-Rosemount Systems, Inc. Boolean logic function block

Also Published As

Publication number Publication date
JPH06149311A (en) 1994-05-27

Similar Documents

Publication Publication Date Title
US5504902A (en) Multi-language generation of control program for an industrial controller
JP6065008B2 (en) Control device
Pereira et al. A mobile app for teaching formal languages and automata
JP7418608B2 (en) How to analyze programmable logic controller programs
JP3124131B2 (en) Tabular circuit description device and method, and functional language conversion device and method
Lin et al. Data structure visualization on the web
JPS6010643B2 (en) sequence controller
JPH07168709A (en) Method and device for simulating program generator utilization specification
US20090217215A1 (en) Apparatus for giving assistance in analyzing deficiency in RTL-input program and method of doing the same
JP3340592B2 (en) Circuit diagram creation device and circuit diagram translation device
CN120045096A (en) Robot job task control system and robot
Harman et al. Using an interpreter to teach introductory programming
JP7770086B2 (en) Program design support system
KR100423742B1 (en) Exclusive control system by sequential function chart
JP2002073120A (en) Programming apparatus and method for programmable controller
JP2767817B2 (en) Simulated operation method of sequencer contacts
JPS63318605A (en) Nc part program generating device
JP2519250B2 (en) Sequence logic program generator
KR910002318B1 (en) Hardware logic analysis circuit with pipeline structure
CN120669967A (en) Method and system for constructing CCNoV data set and WESVM classifier-assisted Web programming
JP2938246B2 (en) Behavioral description programmable controller
JPS61143809A (en) Programmable controller
JPS6170643A (en) Programmable controller input/output calculation processing method
JP2581214B2 (en) Logic simulator
JPS61202241A (en) Debug system for high-level language program

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20001017

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081027

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091027

Year of fee payment: 9

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313117

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091027

Year of fee payment: 9

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees