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
JP3340592B2 - Circuit diagram creation device and circuit diagram translation device - Google Patents
[go: Go Back, main page]

JP3340592B2 - Circuit diagram creation device and circuit diagram translation device - Google Patents

Circuit diagram creation device and circuit diagram translation device

Info

Publication number
JP3340592B2
JP3340592B2 JP16062895A JP16062895A JP3340592B2 JP 3340592 B2 JP3340592 B2 JP 3340592B2 JP 16062895 A JP16062895 A JP 16062895A JP 16062895 A JP16062895 A JP 16062895A JP 3340592 B2 JP3340592 B2 JP 3340592B2
Authority
JP
Japan
Prior art keywords
output
input
name
symbol
condition
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
JP16062895A
Other languages
Japanese (ja)
Other versions
JPH0916219A (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 JP16062895A priority Critical patent/JP3340592B2/en
Publication of JPH0916219A publication Critical patent/JPH0916219A/en
Application granted granted Critical
Publication of JP3340592B2 publication Critical patent/JP3340592B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Programmable Controllers (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、プログラマブルコント
ローラ(以下、PCと略称する)上で動作するプログラ
ムを作成するための回路図作成装置、および、この回路
図をPC用の言語に変換する装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a circuit diagram creating apparatus for creating a program which operates on a programmable controller (hereinafter abbreviated as PC), and an apparatus for converting this circuit diagram into a language for PC. About.

【0002】[0002]

【従来の技術】従来より、FA(Factory Automation)
化あるいはCIM(Cmoputer Integrated Manufacturin
g )化が行われた工場の生産ラインにおいては、例え
ば、ベルトコンベアの出口を通過した製品が所定数量に
達したことを示す物量的情報、あるいは、裁断機が稼働
中であるときに危険領域内に移動物を検出したことを示
す論理的情報等の制御すべき様々な情報がある。そし
て、これら検出された様々な情報に応じて自動化生産ラ
インにおける所定の出力制御(シーケンス制御)を行う
装置としてプログラマブルコントローラ(以下、PCと
称する)が広く用いられている。
2. Description of the Related Art Conventionally, FA (Factory Automation)
Or CIM (Cmoputer Integrated Manufacturin)
g) In the production line of the factory where the conversion has been performed, for example, physical information indicating that the number of products passing through the exit of the belt conveyor has reached a predetermined quantity, or a dangerous area when the cutting machine is operating. There are various information to be controlled, such as logical information indicating that a moving object has been detected. A programmable controller (hereinafter, referred to as a PC) is widely used as a device for performing a predetermined output control (sequence control) in an automated production line in accordance with the various detected information.

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

【0004】図32と図33は、記述形式が異なるだけ
あって、同じプログラム内容を表したものである。すな
わち、両図において図32のリレー回路a−1と図33
の条件表の縦列b−1とが互いに対応しており、これら
は入力A且つ入力Bを条件とする出力Cを表している。
また、同じくリレー回路a−2と条件表縦列b−2とが
互いに対応しており、これらは入力D且つ入力Eを条件
とする出力Fを表している。
FIGS. 32 and 33 show the same program contents except for the description format. That is, in both figures, the relay circuit a-1 of FIG.
Correspond to each other, and represent 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】図34は、上記ラダー図のリレー回路a−
1または条件表の縦列b−1の内容に対応するプログラ
ムの動作を真偽値表で示したものであり、また、図35
は、リレー回路a−2または条件表の縦列b−2の内容
に対応するプログラムの動作を真偽値表で示したもので
ある。
FIG. 34 shows a relay circuit a-
35 shows the operation of the program corresponding to the contents of the column 1 of the condition table 1 or the truth table in the truth table.
Shows the operation of the program corresponding to the contents of the relay circuit a-2 or the column b-2 of the condition table in a truth table.

【0006】これらの記述は、一般にプログラミング装
置(プログラムローダ)によって所定形式のプログラム
に変換されてPCに格納される。このプログラムは、一
般にPC内部でそのまま実行できる機械語ではなく、P
Cが解析しやすい中間言語で記述されている。
[0006] These descriptions are generally converted into a program of a predetermined format by a programming device (program loader) and stored in a PC. This program is generally not a machine language that can be executed as it is inside the PC.
C is described in an intermediate language that is easy to analyze.

【0007】この中間言語の基本構造は、たとえば、
「(F op1 op2・・・ opn)」の形式を持
つ関数型(作用型)言語の構造になっている。上記基本
構造において「(」は命令の始まり、「F」は命令の名
称、「)」は命令の終わりを示す。また、「op1」、
「op2」、・・・「opn」等は、命令のオペランド
であり、これらオペランドが更に命令となって全体とし
て階層構造を取り得るようになっている。この関数型言
語はPC上で直接動作する機械語と1対1に対応してお
り、機械語に容易に変換することができる。
The basic structure of this intermediate language is, for example,
It has a functional (action) language structure having the form of “(F op1 op2... Opn)”. In the above basic structure, "(" indicates the start of an instruction, "F" indicates the name of the instruction, and ")" indicates the end of the instruction. Also, "op1",
“Op2”,..., “Opn”, etc. are operands of an instruction, and these operands can further become an instruction to 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] In general, on-site aspects such as the progress of the process and the work procedure are fluid. For this reason, the procedure (program) of the sequence control on the site is not originally determined in its specifications from the beginning, and changes and corrections are constantly repeated according to the actual conditions of the site during the test operation or actual operation of the PC. It is determined by things. 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】しかしながら、ラダー図は、論理を電流の
流れで模擬したものであるため、論理を回路に変換する
時には、電気的専門知識がある程度要求される。例え
ば、図36の論理回路に対して、その論理の流れを電流
の流れに変換すると、図37のラダー図が作成できる
が、この変換には高度の熟練を要し、初心者では容易に
は変換できないという問題点があった。
However, since the ladder diagram simulates the logic by the flow of electric current, when converting the logic into a circuit, electrical expertise is required to some extent. For example, by converting the flow of the logic into the flow of the current in the logic circuit of FIG. 36, a ladder diagram of FIG. 37 can be created. However, this conversion requires a high degree of skill and is easy for a beginner to use. There was a problem that it was not possible.

【0010】さらに、図37のラダー図と図36の論理
回路とが等価であることを認識するためにも、同様にか
なりの熟練を要し、これもまた、初心者では容易には認
識できないという問題があった。
Further, it takes considerable skill to recognize that the ladder diagram of FIG. 37 is equivalent to the logic circuit of FIG. 36, which is also difficult for a beginner to recognize. There was a problem.

【0011】また、条件表を用いる方式でも以下のよう
な問題がある。すなわち、例えば、図38に示すような
単純な論理回路の場合は、図39に示す条件表に変換で
きるが、前述した図36の論理回路のように、論理演算
の結果を次々に他の論理演算に用いるような複雑な論理
回路(論理が深い)の場合は、条件表に変換することは
できない。また、図40のような遅延動作を有する回路
41を含む論理回路を条件表で表すことはできない。こ
のように、条件表は、必要な論理回路を全て記述するこ
とができるわけではなく、条件表の活用には限界がある
という問題があった。
[0011] Further, the method using the condition table also has the following problem. That is, for example, in the case of a simple logic circuit as shown in FIG. 38, it can be converted to the condition table shown in FIG. 39. However, as in the above-described logic circuit of FIG. In the case of a complicated logic circuit (deep logic) used for an operation, it cannot be converted into a condition table. Further, a logic circuit including a circuit 41 having a delay operation as shown in FIG. 40 cannot be represented by 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】このため、本出願人は、専門的な知識を必
要とせずに作成でき、遅延動作(タイマ)を含む如何な
る論理回路をも記述可能であり、可読性に優れ、表形式
で記述することのできるプログラミング方法(表形式回
路記述)、およびこの表形式回路記述をPC用のプログ
ラム(関数型言語)に変換する言語変換装置(関数型言
語変換装置)に関する発明(特開平6−149311号) を以
前出願した。
For this reason, the present applicant can create any logic circuit including a delay operation (timer) without requiring specialized knowledge, and can describe any logic circuit including a delay operation (timer). Invention relating to a programming method (table-form circuit description) that can be performed, and a language conversion device (functional-type language conversion device) for converting the table-form circuit description into a program for PC (functional language) (Japanese Patent Laid-Open No. 6-149311). Was previously filed.

【0013】[0013]

【発明が解決しようとする課題】ところで、シーケンス
動作を行わせる回路における自動運転等の起動条件や運
転条件の監視は、それら条件に対応して個々に割り付け
られるPCの外部入力接点情報や、PCの内部メモリの
内容を、監視情報として監視装置に送信することにより
行っている。
By the way, the monitoring of the starting condition and the operating condition of the automatic operation and the like in the circuit for performing the sequence operation is performed by using the external input contact information of the PC individually assigned according to the condition or the PC. Is transmitted to the monitoring device as the monitoring information.

【0014】これらの監視情報を監視装置へ送信した
り、この監視装置で動作する監視用プログラムを共通化
して使用するためには、アクセス単位であるメモリ内の
1ワードの中に上記各条件となる外部入力接点情報や内
部メモリの内容をまとめておくと都合が良い。
In order to transmit these pieces of monitoring information to a monitoring device and to use a monitoring program operating on this monitoring device in common, one word in a memory, which is an access unit, stores each of the above conditions. It is convenient to collect the following external input contact information and the contents of the internal memory.

【0015】しかしながら、このためにビットメモリに
割り付けられている自動運転等の起動条件や運転条件
を、ワードメモリに並べ換える場合、ラダー図やFB図
では、それぞれ図41、図42のような表現となり、回
路が非常に長いものとなってしまうため、回路図作成の
労力が大きくなる。
However, when the starting conditions and operating conditions of the automatic operation and the like assigned to the bit memory are rearranged in the word memory, the ladder diagram and the FB diagram are expressed as shown in FIGS. 41 and 42, respectively. And the circuit becomes very long, so that the labor for creating the circuit diagram increases.

【0016】また、上記表形式回路記述の場合には、図
43に示すように、表全体が大きくかつ長くなるため、
可読性が悪くなる。尚、上記各図において、I.001
A,I.0005,I.003B,I.0003は外部
入力接点情報であり、M.0000,M0001,M.
0002,M.000Fは、1ワードでのアクセスが可
能な内部メモリであるワードメモリ(WM000)の各
0,1,2,Fビット目を表している。
In the case of the above-described circuit description in the form of a table, the entire table becomes large and long as shown in FIG.
Poor readability. In each of the above figures, I.I. 001
A, I. 0005, I. 003B, I.C. 0003 is external input contact information. 0000, M0001, M.P.
0002, M. 000F represents the 0th, 1, 2, and Fth bits of the word memory (WM000), which is an internal memory that can be accessed in one word.

【0017】一方、ラダー図の場合、上述のようにして
作成したワードメモリを使用して起動条件や運転条件等
を作成する場合には、図44に示すような回路を作成す
る必要がある。
On the other hand, in the case of a ladder diagram, when starting conditions and operating conditions are created using the word memory created as described above, it is necessary to create a circuit as shown in FIG.

【0018】しかし、この場合、ワードメモリ(WS0
103)への並び換えに使用したビット(図44の例で
は、WS0103.0,WS0103.1,WS010
3.2)を、さらにこの条件(図44の例では、M.0
002の作成)でも使用するため、この条件を決定して
いる上記ワードメモリ(WS0103)の各ビットの継
ながり(論理積回路)が分かりにくくなり可読性が悪
い。
However, in this case, the word memory (WS0)
103 (in the example of FIG. 44, WS0103.0, WS0103.1, WS010).
3.2) and this condition (M.0 in the example of FIG. 44).
002), the connection (logical product circuit) of each bit of the word memory (WS0103) which determines this condition is difficult to understand, and the readability is poor.

【0019】また、図44に示すようにして作成される
条件監視用のワードメモリにおいては、回路の実際の動
作状態を視覚的に認識しやすくするための手段が無く、
故障等が発生した場合、その原因を直ちにつきとめるこ
とが難しかった。
The condition monitoring word memory created as shown in FIG. 44 has no means for visually recognizing the actual operating state of the circuit.
When a failure or the like occurs, it is difficult to immediately determine the cause.

【0020】例えば、前述の特開平6−149311号公報で
は、機器の運転条件等を全てそろえるプログラムを簡単
に作成するために、1つの出力条件を構成する入力が縦
に一列に並ぶように構成されており、出力条件が成立し
ていないときには、その下に並んでいる入力条件をモニ
タすることにより、出力条件を成立させ得ない入力条件
を簡単に見つけることができるようになっている。しか
し、実際の制御では、何かの要因(一次要因:第一次故
障要因と呼ぶ)で入力条件が整わず、出力条件が成立し
ない場合、その出力の二次要因によって、さらに入力条
件が成立しなくなることがとが多々ある。その時、特開
平6−149311号公報に記載されているモニタでは一次要
因と二次要因がともに成立していないため、出力条件が
成立しない真の要因を見つけることができない。
For example, in the above-mentioned Japanese Patent Laid-Open Publication No. Hei 6-149311, in order to easily create a program that prepares all the operating conditions and the like of the devices, the configuration is such that the inputs constituting one output condition are vertically aligned. When an output condition is not satisfied, an input condition that cannot satisfy the output condition can be easily found by monitoring an input condition arranged below the output condition. However, in actual control, if the input condition is not satisfied due to some factor (primary factor: primary failure factor) and the output condition is not satisfied, the input condition is further satisfied by the secondary factor of the output. There are many things that don't work. At that time, the monitor described in Japanese Patent Application Laid-Open No. 6-149311 cannot find a true factor for which the output condition is not satisfied because neither the primary factor nor the secondary factor is satisfied.

【0021】本発明は、上記問題に鑑みなされたもので
あり、自動運転等の起動条件や運転条件等を監視する際
に監視すべき外部入力接点情報や内部メモリ等の監視情
報を1ワードのメモリの中に収集するための回路記述
を、小規模な回路で可読性良く表形式で記述できるよう
にすることを第1の目的とする。
The present invention has been made in view of the above-mentioned problems. The present invention relates to external input contact information to be monitored when monitoring start-up conditions such as automatic operation and operating conditions, and monitoring information such as an internal memory in one word. It is a first object of the present invention to enable a circuit description to be collected in a memory to be described in a tabular format with good readability by a small-scale circuit.

【0022】また、上記のようにして監視情報の収集に
用いたワードメモリを用いて起動条件や運転条件を作成
するための回路を可読性に優れた表形式で記述できるよ
うにすることを第2の目的とする。
A second aspect of the present invention is to enable a circuit for creating start-up conditions and operating conditions to be described in a tabular form excellent in readability using the word memory used for collecting monitoring information as described above. The purpose of.

【0023】さらに、上記起動条件や運転条件等を監視
するために設けられる条件監視用のワードメモリに、回
路の実際の動作状態を視覚的に認識しやすくするための
手段を設け、動作状態の把握を迅速に行える表形式の回
路記述を提供することを第3の目的とする。
Further, a condition monitoring word memory provided for monitoring the above-mentioned starting conditions and operating conditions is provided with means for making it easy to visually recognize the actual operating state of the circuit. A third object is to provide a circuit description in a tabular form that allows quick grasp.

【0024】そして、さらに、上記のような表形式の回
路記述をPC用の言語に変換する方式を提供することを
第4の目的とする。
A fourth object of the present invention is to provide a method of converting the above-described circuit description in a table format into a language for a PC.

【0025】[0025]

【課題を解決するための手段】図1を参照しながら、本
発明の手段を説明する。本発明の回路図作成装置は、プ
ログラマブルコントローラ上で動作するプログラムを記
述した回路図を作成するものである。
The means of the present invention will be described with reference to FIG. A circuit diagram creating apparatus according to the present invention creates a circuit diagram describing a program operating on a programmable controller.

【0026】本発明の回路図作成装置は、以下のフォー
マットの回路図作成領域に各種情報を記述する。即ち、
回路図作成領域は、出力を記述するための複数の出力記
述行10と、その出力に対応する入力を記述するための
複数の入力記述行20とからなる。そして、各出力記述
行10−1、10−2、・・・は、出力信号の名称を記
述する出力名称部11と、出力条件を記述する出力条件
部12とを有する。一方、各入力記述行20−1、20
−2、・・・は、入力信号の名称を記述する入力名称部
21と、入力条件を記述する入力条件部22とを有す
る。さらに、複数の入力記述行20−1、20−2、・
・・に対して論理回路を記述する論理部23を有する。
The circuit diagram creation apparatus of the present invention describes various information in a circuit diagram creation area having the following format. That is,
The circuit diagram creation area includes a plurality of output description lines 10 for describing an output and a plurality of input description lines 20 for describing an input corresponding to the output. Each of the output description lines 10-1, 10-2,... Has an output name section 11 for describing a name of an output signal and an output condition section 12 for describing an output condition. On the other hand, each input description line 20-1, 20
., Have an input name part 21 for describing the name of the input signal and an input condition part 22 for describing the input condition. Further, a plurality of input description lines 20-1, 20-2,.
.. Has a logic unit 23 for describing a logic circuit.

【0027】回路図作成装置内の記述手段は、論理部2
3において、入力名称部11に記述された名称の信号の
入力を意味する入力記号と、それら入力信号に対する論
理演算を意味する論理演算記号を記述する。
The description means in the circuit diagram creation device is a logic unit 2
In 3, an input symbol meaning the input of a signal having the name described in the input name section 11 and a logical operation symbol meaning a logical operation on the input signal are described.

【0028】また、この記述手段は、出力条件部12に
おいて、入力名称部21に名称が記述されている入力信
号または論理部23の論理演算結果が、当該出力記述行
(ここでは、「A」が記述されている行10−3)に対
応する出力メモリ31に書き込まれていることを示すメ
モリ割付記号(ここでは、「A」で表している)を記述
する。出力メモリ31は、例えば、ワードメモリであ
る。
In the output condition section 12, the output condition section 12 converts the input signal whose name is described in the input name section 21 or the logical operation result of the logic section 23 into the output description line (here, “A”). Is written in the output memory 31 corresponding to the row 10-3) in which is written (in this case, represented by "A"). The output memory 31 is, for example, a word memory.

【0029】さらに、この記述手段は、入力条件部22
において、入力名称部21に名称が記述されている入力
信号または論理部23の論理演算結果を出力メモリ31
に書き込むときの出力メモリ31内のビット位置を指定
するビット位置指定記号を記述する。なお、出力メモリ
31は、上記メモリ割付記号が記述されている出力記述
行に対応して設けられている。
Further, the description means includes an input condition unit 22
, The input signal whose name is described in the input name section 21 or the logical operation result of the logic section 23
Describes a bit position designation symbol for designating a bit position in the output memory 31 when writing to the. The output memory 31 is provided corresponding to an output description line in which the memory allocation symbol is described.

【0030】回路図作成装置内の記憶手段は、上記記述
手段によって記述される各記号を上記形式の回路図記述
領域と対応づけて格納する。上記記述手段は、上記機能
に加え、出力条件部12において、当該出力記述行(こ
こでは、「F」が記入されている行10−1)に対応す
る監視用メモリ32の内容に基づいて、上記ビット位置
指定記号の中の該当するものを強調表示させることを指
定する強調表示記号(ここでは「F」で表している)を
記述する。
The storage means in the circuit diagram creation device stores each symbol described by the description means in association with the circuit diagram description area in the above format. In addition to the above-described functions, the above description means allows the output condition unit 12 to execute the processing based on the contents of the monitoring memory 32 corresponding to the output description line (here, the line 10-1 in which “F” is entered). A highlighting symbol (in this case, represented by “F”) for designating the corresponding one of the bit position designating symbols is described.

【0031】本発明の回路図翻訳装置は、上記回路図作
成装置が作成する回路図をプログラマブルコントローラ
用の言語に翻訳するものであり、以下の手段を有する。
入出力条件抽出・記憶手段は、出力条件部12から出力
条件を抽出し、入力条件部22から入力条件を抽出して
それぞれ記憶する。
The circuit diagram translation device of the present invention translates a circuit diagram created by the above-described circuit diagram creation device into a language for a programmable controller and has the following means.
The input / output condition extraction / storage means extracts output conditions from the output condition unit 12 and extracts and stores input conditions from the input condition unit 22.

【0032】出力行情報抽出・記憶手段は、出力名称部
11から出力名称を抽出し、これを出力行情報として記
憶する。入力論理抽出・記憶手段は、論理部23に記述
されている論理回路を所定の言語の対応するステートメ
ントに変換して記憶する。
The output line information extraction / storage means extracts an output name from the output name section 11 and stores it as output line information. The input logic extraction / storage means converts the logic circuit described in the logic unit 23 into a corresponding statement in a predetermined language and stores it.

【0033】ビット収集命令作成手段は、上記入出力条
件抽出・記憶手段を参照して上記メモリ割付記号が記述
されている出力記述行を抽出し、この抽出情報から出力
メモリ31のベースアドレスを作成する。また、上記入
出力条件抽出・記憶手段、上記出力行情報抽出・記憶手
段および上記入力論理抽出・記憶手段に記憶されている
抽出情報を読み出し、これらの抽出情報および上記出力
メモリ31のベースアドレスに基づいて、上記メモリビ
ット位置指定記号が指定する出力メモリ31のビット
に、該メモリビット位置指定記号が記述されている入力
記述行に対応する入力信号または上記論理部の論理演算
結果を書き込むビット収集命令を作成するそして、これ
を上記記憶手段の所定の領域に格納する。
The bit collection instruction creating means extracts an output description line in which the memory allocation symbol is described by referring to the input / output condition extracting / storing means, and creates a base address of the output memory 31 from the extracted information. I do. Also, the extraction information stored in the input / output condition extraction / storage means, the output line information extraction / storage means and the input logic extraction / storage means is read, and the extracted information and the base address of the output memory 31 are read out. A bit collection for writing an input signal corresponding to an input description line in which the memory bit position designation symbol is described or a logical operation result of the logic unit in a bit of the output memory 31 designated by the memory bit position designation symbol An instruction is created and stored in a predetermined area of the storage means.

【0034】監視ワード生成命令作成手段は、上記入出
力条件抽出・記憶手段および上記出力行情報抽出・記憶
手段を参照して上記強調表示記号が記述されている出力
記述行を抽出し、この抽出した出力記述行に対応する監
視用メモリ32の内容に基づいて上記ビット位置指定記
号の中の該当記号を強調表示させるための監視ワード生
成命令を作成する。そして、これを上記記憶手段の所定
領域に格納する。
The monitoring word generation command creating means refers to the input / output condition extracting / storing means and the output line information extracting / storing means to extract an output description line in which the highlighting symbol is described, and extract the output description line. Based on the contents of the monitoring memory 32 corresponding to the output description line, a monitoring word generation instruction for highlighting the corresponding symbol in the bit position designation symbol is created. Then, this is stored in a predetermined area of the storage means.

【0035】[0035]

【作用】本発明の回路図作成装置においては、所定の入
力記述行(ここでは、20−2)の入力条件部22にお
いて、出力メモリ31のビット位置を指定するメモリビ
ット位置指定記号を記述(ここでは斜線部に記述)でき
る。このメモリビット位置指定記号によって指定された
出力メモリ31内のビットには、たとえば、論理部23
の演算結果が行20−2に達している論理演算結果が書
き込まれる。
In the circuit diagram creating apparatus of the present invention, a memory bit position designating symbol designating a bit position of the output memory 31 is described in the input condition section 22 of a predetermined input description line (here, 20-2) ( Here, it can be described in the shaded area). Bits in the output memory 31 designated by the memory bit position designation symbol include, for example, the logic unit 23
Are written to the row 20-2.

【0036】一方、所定の出力記述行(ここでは、10
−3)の出力条件部12において、自己行に対応する出
力メモリ31にデータが格納されていることを示すメモ
リ割付記号を記述できる。
On the other hand, a predetermined output description line (here, 10
In the output condition section 12 of -3), a memory allocation symbol indicating that data is stored in the output memory 31 corresponding to the own row can be described.

【0037】したがって、上記メモリビット位置指定記
号と上記メモリ割付記号とを併用することにより、出力
メモリ31にデータが格納されているか否か、およびデ
ータが格納されている場合にはどのビットに格納されて
いるかを認識できる。
Therefore, by using the memory bit position designation symbol and the memory allocation symbol together, it is determined whether or not data is stored in the output memory 31 and in which bit is stored if the data is stored. Can be recognized.

【0038】また、出力メモリをワードメモリで構成す
れば、起動条件や運動条件の監視のために監視する必要
がある外部入力接点情報や内部メモリ等の監視情報を、
任意の1ワード内に収集でき、上記情報のための回路記
述を小規模な回路で可読性良く記述できる共に、上記ワ
ードメモリの任意のビットを用いる起動条件や運転条件
等を監視する回路も、可読性良く記述できる。
Further, if the output memory is constituted by a word memory, external input contact information and monitoring information such as an internal memory which need to be monitored for monitoring the starting condition and the exercise condition can be stored.
The circuit description for the above information can be collected in an arbitrary word, and the circuit description for the information can be described in a small-scale circuit with good readability. Can be well described.

【0039】さらに、所定の出力記述行(ここでは10
−1)の出力条件部12において、この出力記述行(1
0−1)に対応する監視用メモリ32の内容に基づい
て、ビット位置指定記号のうちの該当するものを強調表
示させる強調表示記号を記述することができる。たとえ
ば、監視用メモリ32の内容が、入力記述行20−2の
入力条件部22に記述されているビット位置指定記号と
一致していれば、そのビット位置指定記号に従って出力
メモリへの書込みが行われれいる信号に対応するビット
位置指定記号を強調表示信号させる。
Further, a predetermined output description line (here, 10
-1), the output description line (1
Based on the contents of the monitoring memory 32 corresponding to 0-1), it is possible to describe a highlighting symbol for highlighting a corresponding bit position designation symbol. For example, if the content of the monitoring memory 32 matches the bit position designation symbol described in the input condition part 22 of the input description line 20-2, writing to the output memory is performed according to the bit position designation symbol. The bit position designation symbol corresponding to the signal is highlighted.

【0040】したがって、現在、プログラマブルコント
ローラ上で実行されている処理に係わる起動条件や運転
条件等を強調表示させることができるので、障害等によ
ってそれら条件に欠落が発生した場合には容易に認識で
きる。
Therefore, since the starting conditions and operating conditions relating to the processing currently being executed on the programmable controller can be highlighted, it is possible to easily recognize when any of those conditions is missing due to a failure or the like. .

【0041】本発明の回路図翻訳装置は、上記回路図作
成装置によって作成される回路図を解読して入出力条
件、論理演算等を抽出し、ビット位置指定記号、メモリ
割付記号、強調表示記号の内容に従って、プログラマブ
ルコントローラ用のビット収集命令および監視ワード生
成命令を生成する。
The circuit diagram translating apparatus of the present invention decodes a circuit diagram created by the circuit diagram creating apparatus, extracts input / output conditions, logical operations, and the like, and designates bit position designation symbols, memory allocation symbols, highlight symbols. , A bit collection instruction and a monitoring word generation instruction for the programmable controller are generated.

【0042】すなわち、自動運転等の起動条件や運転条
件等を監視する場合に、このような条件となる外部入力
接点情報や内部メモリ等の監視情報(これらの名称は、
入力名称部21に記述される)を1ワードのメモリの中
に収集するための回路記述およびこのようにして1ワー
ドメモリに収集される外部入力接点情報や内部メモリ等
を用いて起動条件や運動条件等を記述するための回路記
述を、プログラマブルコントローラ上で動作可能な言語
に変換する。また、上記形式の回路図の出力記述行の出
力条件部12に記述された強調表示記号が、その出力記
述行に対応する監視用メモリの内容に従って、上記出力
メモリ(ワードメモリ)を作成するために使用されるビ
ット位置記号を強調表示するためのプログラマブルコン
トローラ上で動作可能なプログラム命令に変換される。
That is, when monitoring start-up conditions, operation conditions, and the like of automatic operation and the like, monitor information such as external input contact information and internal memory (these names are:
(Described in the input name part 21) in a one-word memory, and starting conditions and movements using the external input contact information, the internal memory, etc. collected in the one-word memory. A circuit description for describing conditions and the like is converted into a language operable on a programmable controller. Also, the highlighting symbol described in the output condition part 12 of the output description line of the circuit diagram of the above format is used to create the output memory (word memory) according to the contents of the monitoring memory corresponding to the output description line. Are converted into program instructions operable on a programmable controller to highlight the bit position symbols used in the program.

【0043】なお、上記変換によって生成される命令
は、たとえば、プログラマブルコントローラが直接理解
できる機械語に1:1に対応する中間言語(関数型言
語)で記述される。
The instructions generated by the above conversion are described in an intermediate language (functional language) corresponding to a machine language that can be directly understood by the programmable controller, for example, 1: 1.

【0044】[0044]

【実施例】以下、図面を参照しながら、本発明の実施例
を説明する。図2は、本発明の一実施例であるPC上で
動作するプログラムを作成するための表形式回路記述の
方法を説明するための図である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 2 is a diagram for explaining a tabular circuit description method for creating a program operating on a PC according to one embodiment of the present invention.

【0045】この表形式記述は、図3に示す論理回路と
等価になっている。すなわち、図2に示す表形式回路記
述は、図3に示す論理回路を定義したものである。そし
て、この表形式回路記述は、出力を記述するための複数
の出力記述行100と上記出力に対応する入力を記述す
るための複数の入力記述行200からなる。
This tabular description is equivalent to the logic circuit shown in FIG. That is, the tabular circuit description shown in FIG. 2 defines the logic circuit shown in FIG. The tabular circuit description includes a plurality of output description lines 100 for describing an output and a plurality of input description lines 200 for describing an input corresponding to the output.

【0046】出力記述行100は、出力信号の名称を記
述する出力名称部a、タイマ設定を記述するタイマ設定
値部c、出力条件を記述する出力条件部e、およびコメ
ントを記述するコメント部gからなる。
The output description line 100 includes an output name part a for describing the name of the output signal, a timer setting value part c for describing the timer setting, an output condition part e for describing the output condition, and a comment part g for describing the comment. Consists of

【0047】入力記述行200は、入力信号の名称を記
述する入力名称部b、論理回路を記述する論理部d、入
力条件を記述する入力条件部f、およびコメントを記述
するコメント部hからなる。
The input description line 200 includes an input name section b for describing the name of an input signal, a logic section d for describing a logic circuit, an input condition section f for describing input conditions, and a comment section h for describing a comment. .

【0048】次に、上記図2に示す論理部d、出力条件
部e、及び入力条件部fに記述する記号の意味を図4と
ともに説明する。 <論理部dの記号> 矢印・・・入力信号の入力を意味する入力記号。
Next, the meanings of the symbols described in the logic part d, output condition part e, and input condition part f shown in FIG. 2 will be described with reference to FIG. <Symbol of logic part d> Arrow: An input symbol meaning input of an input signal.

【0049】中央に黒丸が付加された矢印・・・入力信
号の反転入力を意味する入力反転記号。 一本の縦線・・・入力された信号の論理和を意味する論
理和記号。
Arrow with a black circle added at the center: An input inversion symbol meaning an inversion input of the input signal. One vertical line: a logical sum symbol indicating a logical sum of input signals.

【0050】平行する二本の縦線・・・入力された信号
の論理積を意味する論理積記号。 <出力条件部eの記号> W・・・論理の演算結果を出力信号に代入することを意
味するセット記号。
Two parallel vertical lines: a logical product symbol indicating a logical product of input signals. <Symbol of output condition part e> W: Set symbol indicating that the result of the logical operation is substituted into the output signal.

【0051】S・・・論理の演算結果が真のときに出力
信号をONにし、論理の演算結果が偽のときに無処理を
意味するセット記号。 R・・・論理の演算結果が真のときに出力信号をOFF
にし、論理の演算結果が偽のときに無処理を意味するリ
セット記号。
S: A set symbol that turns on the output signal when the logical operation result is true, and means no processing when the logical operation result is false. R: The output signal is turned off when the logical operation result is true
And a reset symbol that means no processing when the logical operation result is false.

【0052】A・・・入力条件部fで指定された出力ワ
ードメモリ内のビット位置に、その入力条件部fの当該
位置(当該入力記述行)に入力される信号を代入するこ
とを意味するワードメモリ割付記号。
A means that a signal input to the position (input description line) of the input condition part f is substituted into a bit position in the output word memory specified by the input condition part f. Word memory allocation symbol.

【0053】F・・・出力ワードメモリ上のOFFとな
っているビットに対して書き込みを行っている入力条件
部fのワードメモリビット位置記号(この記号について
は後述する)を強調表示させることを意味する強調表示
記号。 <入力条件部fの記号> ○・・・該当する入力記述行200の入力名称部bの信
号、または、論理部dの結果を使用することを意味する
正論理記号。
F: highlighting the word memory bit position symbol (this symbol will be described later) of the input condition part f which is writing to the OFF bit on the output word memory. The highlight symbol that means. <Symbol of input condition part f> ・ ・ ・: Positive logic symbol meaning that the signal of the input name part b of the corresponding input description line 200 or the result of the logic part d is used.

【0054】×・・・該当する入力記述行200の入力
名称部bの信号、または、論理部dの結果を反転して使
用することを意味する負論理記号。 「0」〜「9」および「A」〜「F」・・・該当する入
力記述行200の入力信号を代入する出力ワードメモリ
のビット位置を指定するワードメモリビット位置指定記
号。
X: A negative logic symbol meaning that the signal of the input name part b of the corresponding input description line 200 or the result of the logic part d is used after being inverted. “0” to “9” and “A” to “F”... Word memory bit position designation symbols that designate the bit positions of the output word memory to which the input signals of the corresponding input description line 200 are substituted.

【0055】図5は、上述した図2に示す表形式回路記
述を関数型言語に変換する回路図翻訳装置の全体構成を
示すブロック図である。なお、この関数型言語はPC上
で直接動作する機械語と1対1に対応しており、コンパ
イルによって容易にこの機械語に変換される。
FIG. 5 is a block diagram showing an overall configuration of a circuit diagram translating apparatus for converting the above-described table-form circuit description shown in FIG. 2 into a functional language. This functional language has a one-to-one correspondence with a machine language that operates directly on a PC, and is easily converted to this machine language by compiling.

【0056】ソース格納装置401は、上記図2に示す
表形式回路記述を記憶する。入出力条件抽出装置411
は、図2に示す出力条件部eを列単位に検索して、下記
の処理〜を行う。 上記「W」、「R」または「S」記号が存在する出
力記述行の行番号、およびそれらの記号が存在する出力
記述行に書き込まれている記号を抽出する。
The source storage device 401 stores the tabular circuit description shown in FIG. Input / output condition extraction device 411
Searches for the output condition part e shown in FIG. The line number of the output description line where the above “W”, “R” or “S” symbol exists, and the symbol written in the output description line where those symbols exist are extracted.

【0057】そして、この抽出結果を入出力条件格納装
置412に格納する。 出力条件部e内の「A」または「F」記号(A出力
またはF出力)を「W」記号(W命令)が存在する列毎
に抽出し、「A」または「F」記号が存在する出力記述
行についての情報を、上記各列毎に入出力条件格納装置
412に格納する。 入力条件部fを列単位に検索して前記「○」または
「×」記号を抽出し、これらの記号を上記入出力条件格
納装置412に格納する。 入力条件部fを列単位に検索してワードメモリビッ
ト位置記号によって設定されている出力ワードメモリの
ビット位置を抽出し、この抽出結果を入出力条件格納装
置412に格納する。
Then, the result of the extraction is stored in the input / output condition storage device 412. The "A" or "F" symbol (A output or F output) in the output condition part e is extracted for each column where the "W" symbol (W instruction) exists, and the "A" or "F" symbol exists. Information about the output description line is stored in the input / output condition storage device 412 for each column. The input condition part f is searched in units of columns to extract the “O” or “X” symbols, and stores these symbols in the input / output condition storage device 412. The input condition unit f is searched for each column to extract the bit position of the output word memory set by the word memory bit position symbol, and the extraction result is stored in the input / output condition storage device 412.

【0058】出力行抽出装置421は、出力名称部aお
よびタイマ設定値部cを行単位に検索し、出力名称およ
びタイマ設定値を抽出する。そして、これらを出力行情
報格納装置422に格納する。
The output line extracting device 421 searches the output name part a and the timer set value part c for each line, and extracts the output name and the timer set value. Then, these are stored in the output line information storage device 422.

【0059】入力論理抽出装置431は、入力記述行単
位で論理部dの結果を検索して下記の処理およびを
行う。 検索した入力記述行に論理部記号の最終端(結果)
が存在する場合、その最終端から論理を追跡し、この論
理を関数型言語に変換する。そして、変換された関数型
言語を入力論理格納装置432に格納する。 検索した入力記述行に論理部記号が存在しない場
合、入力名称部bの対応する行の名称を抽出し、この名
称を入力論理格納装置432に格納する。
The input logic extraction device 431 searches the result of the logic part d for each input description line and performs the following processing. The last part of the logical part symbol in the searched input description line (result)
If exists, trace the logic from its end and translate this logic into a functional language. Then, the converted functional language is stored in the input logic storage device 432. If a logical part symbol does not exist in the searched input description line, the name of the corresponding line of the input name part b is extracted, and this name is stored in the input logical storage device 432.

【0060】W,S,R命令作成装置413は、入出力
条件格納装置412に格納されている出力条件部e並び
に入力条件部fの各列の情報を1列目から順番に検索し
て、「W」、「S」または「R」の各記号を、それぞれ
関数型言語の「W」、「S」または「R」の各命令とし
て抽出し、これらを関数型言語格納装置501の所定の
領域に格納する。
The W, S, R instruction preparing device 413 searches the information of each column of the output condition part e and the input condition part f stored in the input / output condition storage device 412 in order from the first column. Each symbol of “W”, “S” or “R” is extracted as each instruction of “W”, “S” or “R” of the functional language, respectively, and these are extracted in a predetermined form of the functional language storage device 501. Store in area.

【0061】タイマ命令作成装置423は、出力行情報
格納装置422に格納されている情報を基に、タイマ設
定値部cにタイマ値が設定されている全ての出力記述行
について、その出力名称部aから出力名称を抽出する。
そして、この出力名称を基にしてタイマ現在値名称を作
成する。さらに、これらを関数型言語格納装置501内
の所定の領域に格納する。
Based on the information stored in the output line information storage device 422, the timer instruction creation device 423 outputs, for all output description lines in which the timer value is set in the timer setting value portion c, the output name portion thereof. Extract the output name from a.
Then, a timer current value name is created based on the output name. Further, these are stored in a predetermined area in the functional language storage device 501.

【0062】ビット収集命令作成装置(A命令作成装
置)441は、入出力条件格納装置412に格納されて
いる情報を基に、下記の処理〜を行う。 出力条件部eにおいて「A」記号が存在する出力記
述行があるか否か調べ、存在すれば、その出力記述行の
出力記述行に記述されている名称に対応するワードアド
レスからビットベースアドレスを作成し、これをビット
ベースアドレス格納装置442に格納する。 入力条件部fにおいて「A」記号が存在する列(該
当列)を全て検索し、これらの該当列においてワードメ
モリビット位置記号(「0」〜「F」の16進数値)が
存在する入力記述行の行番号を抽出する。そして、この
行番号を有する行の名称(該当名称)を入力論理格納装
置432から抽出する。 上記処理で作成したビットベースアドレスに上記
処理で抽出したワードメモリビット位置記号が示す1
6進数値を付加して得られるビットアドレスに、上記処
理で抽出した該当名称を書き込む命令を作成して、こ
れをビット収集命令格納装置443に格納する。
The bit collection instruction creation device (A instruction creation device) 441 performs the following processes 1 to 3 based on the information stored in the input / output condition storage device 412. The output condition part e checks whether there is an output description line in which the "A" symbol exists, and if there is, determines the bit base address from the word address corresponding to the name described in the output description line of the output description line. And stores it in the bit base address storage device 442. In the input condition part f, all columns (corresponding columns) in which the "A" symbol exists are searched, and an input description in which word memory bit position symbols (hexadecimal values of "0" to "F") exist in these corresponding columns Extract the line number of the line. Then, the name (applicable name) of the line having this line number is extracted from the input logical storage device 432. 1 indicated by the word memory bit position symbol extracted in the above-mentioned process in the bit base address created in the above-mentioned process.
An instruction for writing the corresponding name extracted in the above process is created in a bit address obtained by adding a hexadecimal value, and this is stored in the bit collection instruction storage device 443.

【0063】&命令作成装置433は、上記入出力条件
格納装置412に格納されている情報を基に、下記の処
理〜を行う。 出力条件部eにおいて「W」、「S」または「R」
記号が存在する出力記述行においてそれらの記号が存在
する列(該当列)の入力条件部fに「○」、「×」また
はワードメモリビット位置記号(16進数値)が複数存
在する場合、「&」命令を関数型言語格納装置501の
所定領域へ格納すると共に、この格納を記憶しておく。
なお、上記該当列に「○」、「×」またはワードメモリ
ビット位置記号(16進数値)が1つのみの場合には、
何の処理も行わない。 入力条件部fにおける上記該当列に「○」または
「×」が存在する入力記述行の行番号を抽出し、これら
の行番号を有する入力記述行の入力名称部bに記述され
ている名称(該当名称)を、入力論理格納装置432か
ら読み出して関数型言語格納装置501の所定領域に格
納する。
The & instruction creation device 433 performs the following processes 1 to 3 based on the information stored in the input / output condition storage device 412. "W", "S" or "R" in the output condition part e
In the output description line where a symbol is present, when there are a plurality of “○”, “×”, or multiple word memory bit position symbols (hexadecimal value) in the input condition part f of the column where the symbol is present (the corresponding column), “ The && instruction is stored in a predetermined area of the functional language storage device 501, and this storage is stored.
If there is only one “「 ”,“ × ”or word memory bit position symbol (hexadecimal value) in the corresponding column,
No action is taken. The line numbers of the input description lines in which “○” or “×” exists in the corresponding column in the input condition part f are extracted, and the names described in the input name part b of the input description lines having these line numbers ( The corresponding name is read from the input logical storage device 432 and stored in a predetermined area of the functional language storage device 501.

【0064】なお、この処理において、「×」の場合に
は、上記該当名称がアトムとリストの場合で処理が異な
り、以下のようにする。 1)アトムのとき “!”をアトムの先頭に付加する。
In this processing, if the mark is "x", the processing differs depending on whether the corresponding name is an atom or a list. 1) For an atom Add "!" To the beginning of the atom.

【0065】2)リストのとき 「(NOT )」でリストを囲む(ただし、既にリスト
の関数命令が「NOT」のときは、その「NOT」関数
を取り去る)。
2) In the case of a list Surround the list with "(NOT)" (however, if the function instruction of the list is "NOT", the "NOT" function is removed).

【0066】また、本実施例では、オペランドが入力信
号名称であるとき(後述する図10の1行目,2行目,
及び6行目参照)、これをアトムと呼び、一方、オペラ
ンドが関数(後述する図10の3行目参照)であるとき
は、これをリストと呼ぶ。 入力条件部fにおいて、上記該当行にワードメモリ
ビット位置記号(16進数値)が存在する入力記述行
(該当行)を抽出し、この行番号を基に該当するビット
収集命令(A命令)をビット収集命令格納装置443か
ら読み出し関数型言語格納装置501の所定領域に格納
する。
Also, in this embodiment, when the operand is the input signal name (the first line, the second line,
And the sixth line), this is called an atom, and when the operand is a function (see the third line in FIG. 10 described later), this is called a list. In the input condition part f, an input description line (corresponding line) in which the word memory bit position symbol (hexadecimal value) exists in the corresponding line is extracted, and a corresponding bit collection instruction (A instruction) is extracted based on this line number. The data is read from the bit collection command storage device 443 and stored in a predetermined area of the functional language storage device 501.

【0067】タイマ設定値作成装置424は、出力行情
報格納装置422に格納されている情報を基に、タイマ
設定値部cにタイマ値が設定されている出力記述行を探
し、この出力記述行のタイマ設定値部cに記述されてい
るタイマ設定値を、関数型言語装置501の所定領域に
格納する。このとき、&命令作成装置433により既に
&命令が関数型言語格納装置501に格納されている場
合には、その&命令に対応する「)」も格納する。
The timer setting value creation device 424 searches for an output description line in which the timer value is set in the timer setting value portion c based on the information stored in the output line information storage device 422, and Is stored in a predetermined area of the functional language device 501. At this time, if the & instruction has already been stored in the functional language storage device 501 by the & instruction creation device 433, “)” corresponding to the & instruction is also stored.

【0068】出力命令作成装置425は、タイマ設定値
作成装置424によって関数型言語格納装置501に設
定されたタイマ設定値が記述されている出力記述行の出
力名称を出力行情報格納装置422から読み出し、関数
型言語格納装置501の所定領域に格納する。
The output instruction creation device 425 reads out the output name of the output description line in which the timer setting value set in the functional language storage device 501 by the timer setting value creation device 424 is described from the output line information storage device 422. Are stored in a predetermined area of the functional language storage device 501.

【0069】監視ワード生成命令作成装置(F命令作成
装置)451は、入出力条件格納装置412に格納され
ている情報を基に、出力条件部eにおいて「F」記号が
記述されている出力記述行があるか否かを調べ、そのよ
うな行があれば、この行の出力名称をオペランドとする
監視ワード生成命令を作成して、この命令を関数型言語
格納装置501の所定の領域に格納する。
The monitor word generation instruction creation device (F instruction creation device) 451 outputs an output description in which the “F” symbol is described in the output condition part e based on the information stored in the input / output condition storage device 412. A check is performed to determine whether or not there is a row. If such a row exists, a monitoring word generation instruction using the output name of this row as an operand is created, and this instruction is stored in a predetermined area of the functional language storage device 501. I do.

【0070】次に、上記図5に示すプログラム変換装置
の動作を具体的な表形式回路記述の例を取り上げながら
説明する。図6は、本実施例の表形式回路記述の一具体
例を示す図である。
Next, the operation of the program conversion apparatus shown in FIG. 5 will be described with reference to a specific example of a circuit description in a table format. FIG. 6 is a diagram illustrating a specific example of the tabular circuit description of the present embodiment.

【0071】同図において、上方に出力名称部a、タイ
マ設定値部cおよび出力条件部eからなる出力記述行4
1が設けられ、下方に入力名称部b、論理部dおよび入
力条件部fから成る入力記述行42が設けられている。
なお、出力記述行41および入力記述行42は、いずれ
もその行数に制約はなく、論理の深さに応じて増加す
る。
In the figure, an output description line 4 consisting of an output name part a, a timer set value part c and an output condition part e is provided at the top.
1, an input description line 42 including an input name part b, a logic part d, and an input condition part f is provided below.
The number of the output description lines 41 and the number of the input description lines 42 are not limited, and increase according to the logic depth.

【0072】入力名称部bには入力信号の名称「I.0
000」、「I.0001」、「I.0002」、
「I.0003」、「I.0004」および「I.00
05」が記述されている。
In the input name section b, the input signal name "I.0
000 "," I.0001 "," I.0002 ",
“I.0003”, “I.0004” and “I.00”
05 "is described.

【0073】論理部dには、上記入力信号「I.000
0」〜「I.0005」に対して施される論理演算が記
述されている。上記入力信号「I.0002」及び
「I.0003」の入力がそれぞれ矢印47−0及び黒
丸の付いた矢印47−1で記述され、それらの矢印47
−0、47−1によって表される信号が加わるアンド回
路が2本の縦線47−2で記述されている。そして、こ
のアンド回路47−2の演算結果が矢印47−3で記述
され、この演算結果47−3が加わるオア回路が縦1本
の線47−4で記述されている。
The input signal “I.000” is input to the logic part d.
0 "to" I.0005 "are described. The inputs of the input signals "I.0002" and "I.0003" are described by arrows 47-0 and 47-1 with black circles, respectively.
The AND circuit to which the signals represented by −0 and 47-1 are added is described by two vertical lines 47-2. An operation result of the AND circuit 47-2 is described by an arrow 47-3, and an OR circuit to which the operation result 47-3 is added is described by one vertical line 47-4.

【0074】また、入力信号「I.0004」の入力が
矢印47−5で記述され、この入力47−5が上記オア
回路47−4に入力する旨が記述されている。そして、
このオア回路47−4の演算結果が矢印47−6で記述
されており、この矢印47−6が入力記述行の第3行目
の入力条件部fに入力されている。すなわち、上記入力
信号「I.0002」〜「I.0004」に対して論理
部dに記述されている上記演算が実施されたとき、その
演算結果が入力記述行の第3行目に対応するように記述
されている。
The input of the input signal "I.0004" is described by an arrow 47-5, and the input 47-5 is described to be input to the OR circuit 47-4. And
The operation result of the OR circuit 47-4 is described by an arrow 47-6, and the arrow 47-6 is input to the input condition part f in the third line of the input description line. That is, when the operation described in the logic part d is performed on the input signals “I.0002” to “I.0004”, the operation result corresponds to the third line of the input description line. It is described as follows.

【0075】出力条件部fおよび入力条件部fに対して
共通に列48−1,48−2,・・が設けられている。
各列は、PCの1つの動作に対応する。入力条件部fの
1列目48−1には、その1行目において○印が記述さ
れ、2行目において×印が記述されている。この○印
は、対応する行の入力信号、または論理部dの演算結果
を使用することを表す。ここでは、入力条件部fの1行
目にその演算結果を入力するような論理回路が論理部d
に記述されていないので、対応する行の入力信号、すな
わち入力信号「I.0000」を使用することを意味す
る。一方、×印は、対応する行の入力信号または論理部
dの演算結果を反転して使用することを表している。こ
こでは、入力信号「I.0001」の反転信号を使用す
ることを意味する。
Columns 48-1, 48-2,... Are provided in common for output condition section f and input condition section f.
Each column corresponds to one operation of the PC. In the first column 48-1 of the input condition part f, a circle is described in the first row, and a cross is described in the second row. This mark indicates that the input signal of the corresponding row or the operation result of the logic unit d is used. Here, a logic circuit that inputs the operation result to the first row of the input condition part f is a logic part d.
, It means that the input signal of the corresponding row, that is, the input signal “I.0000” is used. On the other hand, the crosses indicate that the input signal of the corresponding row or the operation result of the logic unit d is inverted and used. Here, it means that an inverted signal of the input signal “I.0001” is used.

【0076】入力条件部fの3行目には、論理部dに記
述される論理回路の演算結果としてオア回路47−4の
出力が対応づけられるとともに、同行の列48−1には
ワードメモリビット位置記号(16進数値)として
「0」が記述されている。また、列48−1の6行目に
は、ワードメモリビット位置記号(16進数値)として
「1」が記述されている。
In the third row of the input condition section f, the output of the OR circuit 47-4 is associated with the operation result of the logic circuit described in the logic section d. “0” is described as a bit position symbol (hexadecimal value). In the sixth row of column 48-1, "1" is described as a word memory bit position symbol (hexadecimal value).

【0077】これらの16進数「0」、「1」は、出力
条件部eにおいて「A」記号が記述されている出力記述
行の出力名称部aに記述されている名称「WM000
0」を有するワードメモリの0ビット目、1ビット目に
それぞれ上記オア回路47−4の出力及び入力信号
「I.0005」が書き込まれることを表している。
These hexadecimal numbers "0" and "1" are used for the name "WM000" described in the output name part a of the output description line where the symbol "A" is described in the output condition part e.
This indicates that the output and the input signal “I.0005” of the OR circuit 47-4 are written into the 0th and 1st bits of the word memory having “0”, respectively.

【0078】出力名称部aには、出力信号の名称「T.
SSTIM」、「WM0000」、「SI0000」お
よび「M.RD−F」が記述されている。そして、出力
信号「T.SSTIM」に対応する出力記述行のタイマ
設定値部cには、タイマ設定値が格納されているアドレ
ス「DIABCD」が記述されており、さらにその出力
条件部eの1列目にはライト記号「W」が記述されてい
る。この意味は、出力信号「T.SSTIM」に関する
処理に際して、アドレス「DIABCD」に設定されて
いるタイマ値を読み出し、そのタイマ値が経過した時点
で実際の処理(ここでは、ライト処理)を実行するもの
である。
The output name "a."
SSTIM "," WM0000 "," SI0000 "and" M.RD-F "are described. The address "DIABCD" in which the timer setting value is stored is described in the timer setting value section c of the output description line corresponding to the output signal "T.SSTIM". In the column, a light symbol "W" is described. This means that at the time of processing relating to the output signal “T.SSTIM”, the timer value set at the address “DIABCD” is read, and the actual processing (here, the write processing) is executed when the timer value has elapsed. Things.

【0079】「W」記号は、書込み(ライト)を意味
し、入力記述行42で設定される論理演算結果を出力信
号「T.SSTIM」に代入することを指定している。
ここでは、入力条件部fの1列目48−1に入力条件と
して、1つの○印(1行目)、1つの×印(2行目)、
2つのワードメモリビット位置記号「0」(3行目)お
よび「1」(6行目)が記述されているので、入力記述
行42の1列目48−1で設定される論理演算結果は、
入力信号「I.0000」、入力信号「I.0001」
の反転信号、オア回路47−4の演算結果47−6及び
入力信号「I.0005」の4つの信号の論理積という
ことになる。尚、「W」記号と同様に、「S」記号また
は「R」記号が記述されていた場合においても、その記
号が記述されている列に記述されている○印、×印およ
びワードメモリビット位置記号が存在する入力記述行に
対応する信号の論理積が論理演算結果として使用され
る。
The symbol "W" means "write", and designates that the result of the logical operation set in the input description line 42 is substituted for the output signal "T.SSTIM".
Here, as one of the input conditions in the first column 48-1 of the input condition part f, one 印 mark (first row), one X mark (second row),
Since two word memory bit position symbols "0" (third row) and "1" (sixth row) are described, the logical operation result set in the first column 48-1 of the input description row 42 is ,
Input signal "I.0000", input signal "I.0001"
, The logical product of four signals of the operation result 47-6 of the OR circuit 47-4 and the input signal “I.0005”. Note that, similarly to the “W” symbol, even when the “S” symbol or the “R” symbol is described, the ○ mark, the × mark, and the word memory bit described in the column where the symbol is described. The logical product of the signals corresponding to the input description lines in which the position symbols exist is used as the logical operation result.

【0080】また、出力名称部aに出力信号「WM00
00」が記述されている出力記述行のタイマ設定値部c
にはタイマ設定値の記述はなく、出力条件部eの1列目
にワードメモリ割付記号「A」が記述されている。
The output signal "WM00" is output to the output name part a.
00 "is set in the timer description value section c of the output description line
Has no description of the timer setting value, and the word memory allocation symbol "A" is described in the first column of the output condition part e.

【0081】「A」記号は、この「A」記号が記述され
ている列(ここでは、列48−1)にワードメモリビッ
ト位置記号(16進数値)が記述されている各入力記述
行に入力される信号を、この「A」記号が記述されてい
る出力記述行(2行目)の出力名称部aに記述されてい
る名称が割り当てられている出力ワードメモリにおいて
上記16進数値で示されるビット位置に代入することを
表している。即ち、図6に示す場合には、名称「WM0
000」が割り当てられている出力ワードメモリの第0
ビット「M.0000」にオア回路47−4の論理演算
結果47−6を代入し、同出力ワードメモリの第1ビッ
ト「M.0001」に入力信号「I.0005」が代入
されることになる。
The "A" symbol is assigned to each input description line in which a word memory bit position symbol (hexadecimal value) is described in the column (here, column 48-1) in which the "A" symbol is described. The input signal is indicated by the hexadecimal value in the output word memory to which the name described in the output name part a of the output description line (second line) in which the “A” symbol is described is assigned. Is assigned to the bit position to be set. That is, in the case shown in FIG. 6, the name "WM0
000 ”is assigned to the 0th output memory.
The logical operation result 47-6 of the OR circuit 47-4 is substituted for the bit “M.0000”, and the input signal “I.0005” is substituted for the first bit “M.0001” of the output word memory. Become.

【0082】さらに、出力名称部aに出力信号「SI.
0000」が記述されている出力記述行(3行目)で
は、タイマ設定値部cにはタイマ設定値の記述は無く、
出力条件部eの1列目(48−1)に強調表示記号
「F」が記述されている。
Further, the output signal "SI.
In the output description line (third line) in which “0000” is described, there is no description of the timer set value in the timer set value portion c.
The highlighting symbol "F" is described in the first column (48-1) of the output condition part e.

【0083】「F」記号は、この記号「F」が記述され
ている出力記述行の出力名称部aに記述されている名称
「SI.0000」が割り当てられている出力ワードメ
モリの内容に従って、この「F」記号が記述されている
列(48−1)内の所定位置を強調表示させるための監
視ワード生成命令を作成することを指定するものであ
る。なお、この強調表示については、後述詳しく説明す
る。
The "F" symbol is determined according to the contents of the output word memory to which the name "SI.0000" described in the output name portion a of the output description line in which the symbol "F" is described is assigned. This specifies that a monitoring word generation instruction for highlighting a predetermined position in the column (48-1) in which the "F" symbol is described is created. This highlighting will be described later in detail.

【0084】また、出力名称部aに出力信号「M.RD
−F」が記述されている出力記述行(4行目)では、タ
イマ設定値部cにはタイマ設定値の記述は無く、出力条
件部eの2列目にライト記号「W」が記述されている。
The output signal "M.RD"
In the output description line (4th line) in which “-F” is described, the timer setting value is not described in the timer setting value portion c, and the light symbol “W” is described in the second column of the output condition portion e. ing.

【0085】このライト記号「W」は、入力名称部bに
記述されている入力信号「I.0005」を出力信号
「M.RD−F」に書き込むことを指示するものであ
る。上述のような表形式回路記述がユーザが作成すべき
回路プログラム即ちソースプログラムである。
The write symbol “W” indicates that the input signal “I.0005” described in the input name portion “b” is to be written into the output signal “M.RD-F”. The above-described tabular circuit description is a circuit program to be created by the user, that is, a source program.

【0086】上述の図6の回路プログラムは、図7に示
す関数型言語と等価である。この関数型言語は、ソース
プログラムとオブジェクトプログラムとを結ぶ中間言語
であり、機械語に容易に変換され得るものである。
The above-described circuit program shown in FIG. 6 is equivalent to the functional language shown in FIG. This functional language is an intermediate language that connects a source program and an object program, and can be easily converted to a machine language.

【0087】同図の関数型言語の1行目、4行目、7行
目及び11行目における命令「W」は、上述した図4の
出力条件記号「W」と同義である。また、1行目の命令
「TON」は、出力を所定時間(秒)後に行うように指
示するタイマ命令である。
The instruction “W” in the first, fourth, seventh, and eleventh lines of the functional language shown in FIG. 11 has the same meaning as the output condition symbol “W” in FIG. The command “TON” on the first line is a timer command that instructs output to be performed after a predetermined time (second).

【0088】2行目の命令「&」は、同2行目の第1オ
ペランドである「I.0000」、3行目の第2オペラ
ンドである「!I.0001」、6行目の第3オペラン
ドである「M.0000」、及び7行目の第4オペラン
ドである「M.0001」との論理積を求める演算命令
である。また、4行目の命令「&」は、同じく4行目の
第1オペランド「I.0002」と第2オペランド「!
I.0003」との論理積を求める演算命令である。
The instruction “&” on the second line is “I.0000” which is the first operand on the second line, “! I.0001” which is the second operand on the third line, and “I.0001” on the sixth line. This is an operation instruction for calculating a logical product of “M.0000” which is the three operand and “M.0001” which is the fourth operand on the seventh line. The instruction “&” on the fourth line is also the same as the first operand “I.0002” and the second operand “!” On the fourth line.
I. 0003 ”is an operation instruction for obtaining a logical product with“ 0003 ”.

【0089】4行目から5行目にわたる命令「>=1」
は、4行目の第1オペランドである「(& I.000
2 !I.0003)」と5行目の第2オペランドであ
る「I.0004」との論理和を求める演算命令であ
る。
Instruction "> = 1" on line 4 to line 5
Is the first operand on the fourth line, "(& I.000
2! I. 0003) "and the second operand" I.0004 "in the fifth row.

【0090】なお、3行目および4行目の入力信号
「I.0001」、「I.0004」の直前に付加され
ている記号「!」は、それらの信号を反転させることを
表している。
The symbol “!” Added immediately before the input signals “I.0001” and “I.0004” on the third and fourth lines indicates that those signals are inverted. .

【0091】図8は、入出力条件抽出装置411によっ
て上記図6に示す表形式回路記述の出力条件部eおよび
入力条件部fから抽出され、入出力条件格納装置412
に格納される入出力条件の格納状態図である。
FIG. 8 shows an input / output condition extracting device 411 which extracts the output condition portion e and the input condition portion f of the tabular circuit description shown in FIG.
FIG. 4 is a storage state diagram of input / output conditions stored in the storage device.

【0092】同図に示すように、上記入出力条件を格納
したデータ構成において、その1行目(412−1)
は、上記表形式回路記述の出力条件部eに記述される記
号「W」、「S」または「R」を格納する領域であり、
ここでは、1列目および2列目ともに記号「W」(ライ
ト記号)が格納されている。2行目(412−2)の1
列目および2列目には、各記号「W」が記述されている
出力記述行の行番号「1」および「4」がそれぞれ格納
されている。
As shown in the figure, in the data structure storing the above input / output conditions, the first line (412-1)
Is an area for storing the symbol “W”, “S” or “R” described in the output condition part e of the above-described tabular circuit description,
Here, the symbol “W” (light symbol) is stored in both the first and second columns. 1 in line 2 (412-2)
The column numbers “1” and “4” of the output description line in which each symbol “W” is described are stored in the second and third columns, respectively.

【0093】3行目、4行目(412−3および412
−4)は、それぞれ上記表形式回路記述の出力条件部e
においてワードメモリ割付記号「A」、強調表示記号
「F」が記述されている場合に、それらの記号が記述さ
れている出力記述行の行番号を格納する領域である。図
6に示す例では、出力記述行の2行目及び3行目にそれ
ぞれワードメモリ割付記号「A」、強調表示記号「F」
が記述されているので、ここでは、それぞれ行番号
「2」,「3」が格納されている。
The third and fourth lines (412-3 and 412)
-4) is an output condition part e of the above-described tabular circuit description.
In this case, when the word memory allocation symbol "A" and the highlighting symbol "F" are described, this is an area for storing the line number of the output description line in which those symbols are described. In the example shown in FIG. 6, a word memory allocation symbol "A" and a highlight symbol "F" are respectively provided on the second and third lines of the output description line.
, The row numbers “2” and “3” are stored here.

【0094】5行目以下は、入力条件部fの内容が格納
されている。すなわち、5〜7行目(412−5〜41
2−7)の1列目、および10行目(412−10)の
1列目および2列目には、図6に示した表形式回路記述
の入力条件部fの同行同列に記述された入力条件記号
「○」、「×」またはワードメモリビット位置記号(1
6進数値「0」、「1」)が格納されている。そして、
上記表形式回路記述の出力条件部eおよび入力条件部f
において入出力条件記号の記述がないマトリクス位置に
対応する箇所には「無」が格納されている。
The contents of the input condition part f are stored in the fifth and subsequent lines. That is, the fifth to seventh lines (412-5 to 41)
The first column of 2-7) and the first and second columns of the tenth row (412-10) are described in the same row and column of the input condition part f of the tabular circuit description shown in FIG. Input condition symbol "○", "x" or word memory bit position symbol (1
Hexadecimal values “0”, “1”) are stored. And
Output condition part e and input condition part f of the above-described tabular circuit description
In the column corresponding to the matrix position where no input / output condition symbol is described, “absence” is stored.

【0095】図9は、出力行抽出装置421によって出
力記述行から抽出され、出力行情報格納装置422に格
納される出力行情報の格納状態図である。同図の例で
は、図6に示した表形式回路記述の1行目の出力記述行
の出力名称部aおよびタイマ設定値部cに記述された出
力信号名「T.SSTIM」及びタイマ設定値「DIA
BCD」が1行目に格納され、上記表形式回路記述の2
行目の出力記述行の出力名称部aに記述された出力信号
名「WM0000」が2行目に格納されている。さら
に、図6に示した表形式回路記述の3および4行目の出
力記述行の出力名称部aに記述され出力信号名「SI0
000」、「M.RD−F」が、続く3行目,4行目に
格納されている。なお、図6において、タイマ設定値部
cにタイマ値が記述されていない行に対しては、「無」
が格納される。
FIG. 9 is a storage state diagram of the output line information extracted from the output description line by the output line extraction device 421 and stored in the output line information storage device 422. In the example of FIG. 6, the output signal name “T.SSTIM” and the timer setting value described in the output name part “a” and the timer setting value part “c” of the first output description line of the tabular circuit description shown in FIG. "DIA
BCD "is stored in the first row, and 2 in the above-described tabular circuit description.
The output signal name “WM0000” described in the output name part a of the output description line of the second line is stored in the second line. Further, the output signal name “SI0” described in the output name part “a” of the third and fourth output description lines in the tabular circuit description shown in FIG.
000 "and" M.RD-F "are stored in the subsequent third and fourth rows. In FIG. 6, "None" is set for a line in which the timer value is not described in the timer setting value part c.
Is stored.

【0096】図10は、入力論理抽出装置431によっ
て上記表形式回路記述から抽出され入力論理格納装置4
32に格納される入力信号および関数型言語に変換され
た論理部dの論理演算回路(入力論理)の格納状態図で
ある。
FIG. 10 shows an input logic storage device 4 which is extracted from the above-described tabular circuit description by the input logic extraction device 431.
FIG. 3 is a diagram illustrating a storage state of an input signal stored in a logic operation circuit and a logical operation circuit (input logic) of a logic unit converted into a functional language;

【0097】図6に示す表形式回路記述の論理部dで論
理演算の記述がなされなかった入力信号名「I.000
0」、「I.0001」および「I.0005」は、そ
の表形式回路記述の入力名称部bと同一の行にそのまま
格納されている。一方、論理部dで論理演算の記述がな
された入力信号名は、その論理演算結果が入力される入
力条件部fの行と同一の行に、上記論理演算と等価な関
数型言語記述がパラメータとして格納されている。すな
わち、入力信号「I.0002」〜「I.0004」に
対して施される論理演算を関数型言語で記述したものが
3行目に格納される。
The input signal name “I.000” for which the logical operation is not described in the logical part “d” of the tabular circuit description shown in FIG.
“0”, “I.0001”, and “I.0005” are stored as they are in the same row as the input name part b of the tabular circuit description. On the other hand, the input signal name in which the logical operation is described by the logical unit d is described in the same line as the line of the input condition unit f to which the result of the logical operation is input, with a functional language description equivalent to the logical operation described above as a parameter. Is stored as That is, the logical operation performed on the input signals “I.0002” to “I.0004” described in the functional language is stored in the third row.

【0098】次に、上記構成の実施例の処理動作につい
て、図11〜図22のフローチャートを用いて説明す
る。この処理では、図5に示す回路図変換装置の特には
図示しないCPU(中央演算処理装置)による制御の下
に、この回路図変換装置を構成する各装置によって、ソ
ース格納装置401に格納されている表形式回路記述が
関数型言語に変換される。なお、この変換処理に先立っ
て入出力条件格納装置412、出力行情報格納装置42
2、入力論理格納装置432,ビット収集命令格納装置
443およびビットベースアドレス格納装置442のデ
ータ内容は全てクリアされる。
Next, the processing operation of the embodiment having the above configuration will be described with reference to the flowcharts of FIGS. In this processing, under the control of a CPU (Central Processing Unit) (not shown) of the circuit diagram conversion device shown in FIG. 5, each device constituting the circuit diagram conversion device stores the data in the source storage device 401. Tabular circuit description is converted to a functional language. Prior to this conversion processing, the input / output condition storage device 412 and the output line information storage device 42
2. The data contents of the input logical storage device 432, the bit collection command storage device 443 and the bit base address storage device 442 are all cleared.

【0099】図11は、この変換処理の全体の流れを示
すゼネラルフローチャートである。このフローチャート
内の各処理S111〜S120は、後述する図12〜図
22で詳述する。
FIG. 11 is a general flowchart showing the overall flow of this conversion processing. Each process S111 to S120 in this flowchart will be described in detail with reference to FIGS.

【0100】まず、ステップS111において、上記表
形式回路記述の出力条件部e並びに入力条件部fの1列
目について入出力条件抽出装置411によって入出力条
件の抽出処理を行い、続いて、ステップS112で、出
力行抽出装置421によって出力行情報の抽出処理を行
う。そして、ステップS113で、入力論理抽出装置4
31によって入力論理の抽出処理を行う。
First, in step S111, input / output condition extraction processing is performed by the input / output condition extraction device 411 for the first column of the output condition unit e and the input condition unit f of the above-described tabular circuit description. Then, the output line extracting device 421 performs output line information extraction processing. Then, in step S113, the input logic extraction device 4
31 performs input logic extraction processing.

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

【0102】すなわち、ステップS114では、W,
S,R命令作成装置413によって、W,S,R命令を
作成する。次に、ステップS115では、タイマ命令作
成装置423により、タイマ命令の作成処理を行い、続
いて、ステップS116でビット収集命令作成装置(A
命令作成装置)441によりビット収集命令の作成処理
を、ステップS117では、&命令作成装置433によ
り$命令の作成処理を行う。ステップS118では、タ
イマ設定値作成装置424により、タイマ設定値の作成
処理を行い、さらに、ステップS119では、出力命令
作成装置425により、出力命令の作成処理を行う。そ
して、最後に、ステップS120で、監視ワード生成命
令作成装置(F命令作成装置)451により監視ワード
生成命令の作成処理を行う。
That is, in step S114, W,
The S, R instruction creating device 413 creates W, S, R instructions. Next, in step S115, a timer instruction creating device 423 performs a timer instruction creating process, and then in step S116, a bit collection instruction creating device (A
(Instruction creation device) 441, and in step S117, & instruction creation device 433 performs the # instruction creation process. In step S118, the timer setting value creation device 424 performs a timer setting value creation process. In step S119, the output command creation device 425 performs an output command creation process. Then, finally, in step S120, the monitoring word generation instruction generation device (F instruction generation device) 451 performs a monitoring word generation instruction generation process.

【0103】続いて、次の列(出力条件部e並びに入力
条件部fの2列目)が検索され、この列に命令(出力条
件記号)「W」、「S」または「R」があるか否かを判
別する。そして、いずれかの命令(出力条件記号)があ
れば、ステップS114に戻ってステップS114〜S
120を繰り返えす。
Subsequently, the next column (the second column of the output condition section e and the input condition section f) is searched, and there is an instruction (output condition symbol) "W", "S" or "R" in this column. It is determined whether or not. If there is any instruction (output condition symbol), the flow returns to step S114 to return to steps S114 to S114.
Repeat step 120.

【0104】以上の処理を表形式回路記述のすべての列
について行うことにより、図5のソース格納装置401
に格納されている図6に示す表形式回路記述が、図7に
示す関数型言語に変換されて、図5の関数型言語格納装
置501に格納される。
The above processing is performed for all the columns of the table-form circuit description, whereby the source storage device 401 shown in FIG.
Is converted into the functional language shown in FIG. 7 and stored in the functional language storage device 501 shown in FIG.

【0105】次に、上記各ステップS114〜S120
の各処理を詳細に説明する。図12は、上記ステップS
114における入出力条件抽出処理のフローチャートで
ある。
Next, the above steps S114 to S120
Will be described in detail. FIG.
14 is a flowchart of an input / output condition extraction process in 114.

【0106】同図において、入出力条件抽出装置411
は、まず、図6に示す表形式回路記述の出力条件部eを
列単位に検索して、a)記号「W」、「R」、「S」と
それらの記号が記述されている行番号を抽出し、b)記
号「A」が記述されている行番号を抽出し、さらにc)
記号「F」が記述されている行番号を抽出する(ステッ
プS131)。そして、これらの抽出結果を入出力条件
格納装置412の所定領域に格納する(ステップS13
2)。
In the figure, the input / output condition extraction device 411
First, the output condition part e of the tabular circuit description shown in FIG. 6 is searched in units of columns, and a) the symbols "W", "R", "S" and the line numbers in which those symbols are described B) The line number in which the symbol "A" is described is extracted, and c) is further extracted.
The line number in which the symbol "F" is described is extracted (step S131). Then, these extraction results are stored in a predetermined area of the input / output condition storage device 412 (step S13).
2).

【0107】続いて、上記表形式回路記述の入力条件部
fを列単位に検索し、記号「○」、「×」およびワード
メモリビット位置記号(16進数値)とそれら記号が記
述されている入力記述行の行番号を抽出する(ステップ
S133)。そして、これらの抽出結果を入出力条件格
納装置412に格納する(ステップS134)。
Subsequently, the input condition part f of the above-described tabular circuit description is searched in units of columns, and the symbols "o" and "x", the word memory bit position symbols (hexadecimal values) and these symbols are described. The line number of the input description line is extracted (step S133). Then, these extraction results are stored in the input / output condition storage device 412 (step S134).

【0108】これにより、入出力条件格納装置412に
は、上述した図8に示すデータが格納される。図13
は、上記ステップS115における出力行情報抽出処理
のフローチャートである。
As a result, the data shown in FIG. 8 described above is stored in the input / output condition storage device 412. FIG.
Is a flowchart of the output line information extraction process in step S115.

【0109】出力行抽出装置421は、図6に示す表形
式回路記述の出力名称部aおよびタイマ設定値部cを行
単位に検索し、出力名称およびタイマ設定値を抽出する
(ステップS141)。そして、これら抽出した出力名
称およびタイマ設定値を出力行情報格納装置422に格
納する(ステップS142)。
The output row extraction device 421 searches the output name part a and the timer setting value part c of the table-form circuit description shown in FIG. 6 for each row, and extracts the output name and the timer setting value (step S141). Then, the extracted output name and timer set value are stored in the output line information storage device 422 (step S142).

【0110】これにより、出力行情報格納装置422に
は、上述した図9に示すデータが格納される。図14
は、上記ステップS123における入力論理抽出処理の
フローチャートである。
Thus, the above-described data shown in FIG. 9 is stored in the output row information storage device 422. FIG.
Is a flowchart of the input logic extraction process in step S123.

【0111】入力論理抽出装置431は、まず、図6に
示す表形式回路記述の論理部dを行単位に検索し(ステ
ップS151)、検索行に論理記号の最終端(論理演算
の結果)が存在するか否か判別する(ステップS15
2)。そして、最終端が存在した場合は、この最終端か
ら論理を追跡し、この論理を関数型言語に変換する(ス
テップS153)。さらに、この関数型言語を入力論理
格納装置432の所定領域に格納する(ステップS15
4)。
The input logic extracting device 431 first searches the logical part d of the table-form circuit description shown in FIG. 6 in units of rows (step S151), and the last end of the logical symbol (the result of the logical operation) is found in the search row. It is determined whether or not it exists (step S15)
2). If the last end exists, the logic is traced from this last end, and this logic is converted into a functional language (step S153). Further, the functional language is stored in a predetermined area of the input logic storage device 432 (step S15).
4).

【0112】一方、上記ステップS152の判別で、検
索行に論理記号の最終端(論理演算の結果)が存在しな
い場合は、対応する行の入力名称部bに記述されている
入力信号名称を抽出し(ステップS156)、この入力
信号名称を入力論理格納装置432の所定領域に格納す
る(ステップS157)。
On the other hand, if it is determined in step S152 that the last end of the logical symbol (the result of the logical operation) does not exist in the search row, the input signal name described in the input name section b of the corresponding row is extracted. Then, the input signal name is stored in a predetermined area of the input logical storage device 432 (step S157).

【0113】これにより、入力論理格納装置432には
上述した図10に示す格納状態が実現される。図15
は、上記ステップS114におけるW,S,R命令作成
処理のフローチャートである。
As a result, the storage state shown in FIG. 10 described above is realized in the input logical storage device 432. FIG.
9 is a flowchart of the W, S, R instruction creation processing in step S114.

【0114】W,S,R命令作成装置413は、図8に
示す入出力条件格納装置412内のデータの1列目から
「W」、「S」、「R」命令の種別(同図の例では
「W」)を抽出し(ステップS161)、その抽出した
命令「W」を関数型言語格納装置501の所定の領域に
格納する(ステップS162)。
The W, S, R instruction creation device 413 checks the types of “W”, “S”, and “R” instructions from the first column of data in the input / output condition storage device 412 shown in FIG. In the example, “W” is extracted (step S161), and the extracted instruction “W” is stored in a predetermined area of the functional language storage device 501 (step S162).

【0115】これにより、関数型言語格納装置501に
は、図23に示すW命令「(W」格納される。図16
は、上記ステップS115におけるタイマ命令作成処理
のフローチャートである。
Thus, the W instruction “(W)” shown in FIG. 23 is stored in the functional language storage device 501.
9 is a flowchart of the timer instruction creation process in step S115.

【0116】タイマ命令作成装置423は、図8に示す
入出力条件格納装置412に格納されているデータの1
列目にある出力行番号(図8に示す例では、例えば、そ
の1列目に「1」が格納されている)を抽出する(ステ
ップS171)。次に、図9に示す出力行情報格納装置
422に格納されているデータを読み出し、上記抽出し
た出力行番号の行(この場合は1行目)にタイマ設定値
が存在するか否か判別する(ステップS172)。タイ
マ設定値が記述されている場合には、そのタイマ設定値
(同図の例では「DIABCD」)およびこのタイマ設
定値が記述されている行の出力名称部aに設定されてい
る出力信号名称(同図の例では「T.SSTIM」)を
抽出し(ステップS173)、この出力信号名称「T.
SSTIM」に基づいてタイマ現在値名称「TRSST
IM」を作成する(ステップS174)。この処理にお
いて、本実施例では、出力信号名称とタイマ現在値名称
とが図24に示すような形式で1対1に対応づけられて
おり、この対応関係に基づいてタイマ現在値名称を作成
する。
The timer instruction creation device 423 stores one of the data stored in the input / output condition storage device 412 shown in FIG.
The output row number in the column (in the example shown in FIG. 8, for example, "1" is stored in the first column) is extracted (step S171). Next, the data stored in the output line information storage device 422 shown in FIG. 9 is read, and it is determined whether or not the timer setting value exists in the line of the extracted output line number (the first line in this case). (Step S172). When the timer setting value is described, the timer setting value (“DIABCD” in the example of FIG. 2) and the output signal name set in the output name part a of the line in which the timer setting value is described (“T.SSTIM” in the example of FIG. 6) is extracted (step S173), and the output signal name “T.SSTIM” is extracted.
The current timer value name “TRSST”
IM ”is created (step S174). In this processing, in the present embodiment, the output signal name and the timer current value name are associated one-to-one in a format as shown in FIG. 24, and the timer current value name is created based on this correspondence. .

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

【0118】これにより、関数型言語格納装置501内
には、図25に示すような関数型言語の記述が格納され
る。尚、上記ステップS172においてタイマ設定値が
存在しない場合は、ステップS173〜S175の処理
は行わず直ちにタイマ命令作成処理を終了する。
As a result, the description of the functional language as shown in FIG. 25 is stored in the functional language storage device 501. If the timer set value does not exist in step S172, the process of steps S173 to S175 is not performed, and the timer instruction creation process ends immediately.

【0119】図17は、上記ステップS116における
ビット収集命令作成処理のフローチャートである。同図
において、ビット収集命令作成装置(A命令作成装置)
441は、まず、入出力条件格納装置412を検索し、
図8に示す格納データから出力条件部eの該当列におい
て「A」記号が存在する出力記述行である出力記述行の
番号(A出力行番号)を抽出する。つづいて、出力行情
報格納装置422からこのA出力行の出力名称部aに記
述されている出力名称を取り出し、この出力名称を基に
出力ワードメモリのビットベースアドレスを生成する。
そして、これをビットベースアドレス格納装置442に
格納する(ステップS176)。
FIG. 17 is a flowchart of the bit collection instruction creation process in step S116. In the figure, a bit collection instruction creation device (A instruction creation device)
441 first searches the input / output condition storage device 412,
From the stored data shown in FIG. 8, the number of the output description line (A output line number) which is the output description line in which the "A" symbol exists in the corresponding column of the output condition part e is extracted. Subsequently, the output name described in the output name section a of the A output row is extracted from the output row information storage device 422, and the bit base address of the output word memory is generated based on the output name.
Then, this is stored in the bit base address storage device 442 (step S176).

【0120】図6に示す表形式回路記述の場合、上記A
出力行である2行目の出力記述行の出力名称部aに記述
されている出力名称「WM0000」からワードメモリ
のビットベースアドレス「M.0000」を生成し、こ
れをビットベースアドレス格納装置442に格納する。
In the case of the tabular circuit description shown in FIG.
The bit base address “M.0000” of the word memory is generated from the output name “WM0000” described in the output name portion “a” of the second output description line, which is the output line, and the generated bit base address is stored in the bit base address storage device 442. To be stored.

【0121】続いて、同じく入出力条件格納装置412
を検索し、入力条件部fの該当列にワードメモリビット
位置記号(16進数値)が存在する入力記述行が有るか
否か調べ(ステップS177)、有る場合にはその入力
記述行の行番号を抽出し、この行番号に該当する名称を
入力論理格納装置432から抽出する(ステップS17
8)。上記作成した出力ワードメモリのビットベースア
ドレスのビットディスプレイスメントの部分に上記ワー
ドメモリビット位置記号が示す16進数値を加えて出力
ワードメモリのビットアドレスを作成する(ステップS
179)。そして、このビットアドレスに上記抽出した
名称を書き込む命令を作成し、これを図5のビット収集
命令格納装置443に格納する(ステップS180)。
Subsequently, the input / output condition storage device 412
Is checked to see if there is an input description line in which the word memory bit position symbol (hexadecimal value) exists in the corresponding column of the input condition part f (step S177), and if so, the line number of the input description line Is extracted from the input logical storage device 432 (step S17).
8). A bit address of the output word memory is created by adding the hexadecimal value indicated by the word memory bit position symbol to the bit displacement portion of the bit base address of the created output word memory (step S).
179). Then, an instruction to write the extracted name into this bit address is created and stored in the bit collection instruction storage device 443 in FIG. 5 (step S180).

【0122】以上の処理により、図6に示す表形式回路
記述の場合、ビット収集命令格納装置443には図26
に示すような2行にわたるビット収集命令が格納され
る。このビット収集命令は、起動条件や運転条件などを
規定するものである。ここで、ワードメモリビット位置
記号が示す16進数値が「0」である場合には、これら
の条件は出力ワードメモリの第0ビットに格納される。
すなわち、上記出力ワードメモリのビットベースアドレ
ス「M.0000」に上記16進数値「0」を加えたア
ドレスに上記条件を格納する。図6に示す回路図では、
起動条件または運転条件である(>=1 (& I.0002 !I.000
3) I.0004) を出力ワードメモリの第0ビットである
M.0000に書き込むことを指定する回路記述を、出
力条件部eの「A」記号、論理部dおよび入力条件部f
のワードメモリビット位置記号(16進数値)とを用い
て可読性よく簡潔に記述できる。
According to the above processing, in the case of the table format circuit description shown in FIG.
The bit collection instruction over two rows as shown in FIG. The bit collection command defines a start condition, an operation condition, and the like. If the hexadecimal value indicated by the word memory bit position symbol is "0", these conditions are stored in the 0th bit of the output word memory.
That is, the condition is stored at an address obtained by adding the hexadecimal value "0" to the bit base address "M.0000" of the output word memory. In the circuit diagram shown in FIG.
Start condition or operation condition (> = 1 (& I.0002! I.000
3) Replace I.0004) with M.0, which is the 0th bit of the output word memory. 0000, a circuit description designating the writing into the output condition part e, the logic part d, and the input condition part f
And the word memory bit position symbol (hexadecimal value).

【0123】図18および図19は、上記ステップS1
17における&命令作成処理のフローチャートである。
&命令作成装置433は、まず、入出力条件格納装置4
12を検索し(ステップS181)、図8に示す格納デ
ータの各列毎に、「○」,「×」またはワードメモリビ
ット位置記号(16進数値)が複数存在するか否か判別
する(ステップS182)。
FIG. 18 and FIG.
17 is a flowchart of & instruction creation processing in 17.
& Instruction creation device 433, first, input / output condition storage device 4
12 (step S181), and it is determined whether or not a plurality of "O", "X", or a plurality of word memory bit position symbols (hexadecimal values) exist for each column of the stored data shown in FIG. 8 (step S181). S182).

【0124】この判別で、上記記号が複数存在すれば、
「&」命令を関数型言語格納装置501の所定領域に格
納し(ステップS183)、さらに、この「&」命令を
関数型言語格納装置501に格納したことを記憶して
(ステップS184)、ステップS185に進む。これ
により、関数型言語格納装置501の格納状態は、図2
7に示すようになる。
In this determination, if there are a plurality of the above symbols,
The "&" instruction is stored in a predetermined area of the functional language storage device 501 (step S183), and the fact that the "&" instruction is stored in the functional language storage device 501 is stored (step S184). Proceed to S185. As a result, the storage state of the functional language storage device 501 is as shown in FIG.
As shown in FIG.

【0125】一方、上記ステップS182において、検
索した列に「○」,「×」またはワードメモリビット位
置記号(16進数値)が複数個存在しない場合は、ステ
ップS183およびS184の処理を行わず、直ちにス
テップS185に進む。
On the other hand, in step S182, if the retrieved column does not include a plurality of “○”, “×”, or a plurality of word memory bit position symbols (hexadecimal values), the processing in steps S183 and S184 is not performed. The process immediately proceeds to step S185.

【0126】続いて、入出力条件格納装置412のデー
タ領域を検索(ステップS185)して図8に示す格納
データから該当列において「○」または「×」のある行
番号を抽出し、図10に示す入力論理格納装置432の
格納データから上記抽出した行番号の入力記述行に記述
されている該当名称を抽出し、この抽出した該当名称を
関数型言語格納装置501の所定領域に格納する(ステ
ップS186)。
Subsequently, the data area of the input / output condition storage device 412 is searched (step S185), and the row number having "O" or "X" in the corresponding column is extracted from the storage data shown in FIG. The corresponding name described in the input description line of the extracted line number is extracted from the storage data of the input logical storage device 432 shown in (1), and the extracted corresponding name is stored in a predetermined area of the functional language storage device 501 ( Step S186).

【0127】次に、上記抽出された入力条件が信号の反
転を示す「×」であったか否か判別し(ステップS18
7)、「×」であれば、上記格納した該当名称がアトム
であるか否か判別する(ステップS188)。
Next, it is determined whether or not the extracted input condition is "x" indicating signal inversion (step S18).
7) If "x", it is determined whether or not the stored name is an atom (step S188).

【0128】上記判別で、格納した該当名称がアトムで
あれば、この該当名称の先頭に反転を表す「!」を付加
して(ステップS189)、ステップS193へ進む。
一方、上記判別で、格納した該当名称がリストのとき
は、そのリストの関数名が反転命令の「NOT」である
か否か判別する(ステップS190)。関数名が「NO
T」であれば、その「NOT」関数を取り除くことによ
り、その反転命令「NOT」をさらに反転させて(ステ
ップS191)、ステップS193へすすむ。関数名が
「NOT」でないときは、そのリストを「(NOT
)」でくくって「NOT」関数として値を反転(ステ
ップS192)させてステップS193へ進む。
If it is determined that the corresponding name is an atom, "!" Indicating inversion is added to the head of the corresponding name (step S189), and the flow advances to step S193.
On the other hand, if the stored name is a list in the above determination, it is determined whether or not the function name of the list is “NOT” of the inversion command (step S190). If the function name is "NO
If it is "T", the "NOT" function is removed to further invert the inversion command "NOT" (step S191), and the process proceeds to step S193. If the function name is not "NOT", the list is displayed as "(NOT
)) And inverts the value as a “NOT” function (step S192), and proceeds to step S193.

【0129】続いて、図8に示す入出力格納装置412
の格納データを基に入力条件部fの該当列の各行に記述
されているデータを検索し(ステップS193)、ワー
ドメモリビット位置記号(16進数値)が存在する入力
記述行の行番号を抽出する。そして、図26に示すビッ
ト収集格納装置443の格納データから、この抽出した
行番号に対応するビット収集命令を取り出し、これを図
5の関数型言語格納装置501の所定領域に格納する
(ステップS194)。例えば、図6において、ワード
メモリビット位置記号(16進数値)は、入力記述行の
3行目と6行目に記述されているが、これら各行に記述
されている値はそれぞれ「0」、「1」であるので、図
26に示すデータの「0」および「1」から入力論理を
取り出してこれを関数型言語格納装置501の所定領域
に格納する。
Subsequently, the input / output storage device 412 shown in FIG.
(Step S193), and extracts the line number of the input description line in which the word memory bit position symbol (hexadecimal value) exists. I do. Then, a bit collection instruction corresponding to the extracted row number is extracted from the data stored in the bit collection storage device 443 shown in FIG. 26, and stored in a predetermined area of the functional language storage device 501 in FIG. 5 (step S194). ). For example, in FIG. 6, the word memory bit position symbol (hexadecimal value) is described in the third and sixth lines of the input description line, and the values described in these lines are “0”, Since it is “1”, the input logic is extracted from the data “0” and “1” shown in FIG. 26 and stored in a predetermined area of the functional language storage device 501.

【0130】これにより、関数型言語格納装置501に
は、図28に示す状態まで関数型言語が格納される。こ
のように、&命令は、ある列の入力条件部fに「○」,
「×」またはワードメモリビット位置記号(16進数
値)が複数個存在するときに、それら記号が記述されて
いる入力記述行の各信号・論理式の論理和をとらせる命
令である。
Thus, the functional language storage device 501 stores the functional language up to the state shown in FIG. As described above, the & instruction indicates “○”,
When a plurality of "x" or word memory bit position symbols (hexadecimal values) are present, this instruction is a logical sum of each signal / logical expression in the input description line in which those symbols are described.

【0131】図20は、上記ステップS118における
タイマ設定値作成処理のタイムチャートである。タイマ
設定値作成装置424は、まず、図9に示す出力行情報
格納装置422の格納データを検索し(ステップS19
5)、該当行にタイマ設定値名称が存在するか否か判別
する(ステップS196)。そして、タイマ設定値名称
が存在すれば、次に、そのタイマ設定値(同図の例では
「DIABCD」)を、関数型言語格納装置501の所
定領域に格納する(ステップS197)。そして、前述
した&命令作成処理において&命令の作成が記憶されて
いれば、その&命令「(&」の終了を示す「)」を続い
て格納する(ステップS198)。
FIG. 20 is a time chart of the timer set value creation processing in step S118. First, the timer setting value creation device 424 searches for data stored in the output row information storage device 422 shown in FIG. 9 (step S19).
5) It is determined whether a timer set value name exists in the corresponding line (step S196). Then, if the timer set value name exists, the timer set value (“DIABCD” in the example of the figure) is stored in a predetermined area of the functional language storage device 501 (step S197). Then, if the creation of the & instruction is stored in the & instruction creation processing described above, the & instruction "(" indicating the end of (&) "is stored subsequently (step S198).

【0132】なお、&命令が作成されていなかった場合
は、ステップS198は行わず直ちにタイマ設定値作成
処理を終了する。また、上記ステップS195で、タイ
マ設定値名称が存在しない場合にも、直ちにその処理を
終了する。
If the & instruction has not been created, the step S198 is skipped and the timer set value creating process is immediately terminated. Also, in the case where the timer set value name does not exist in step S195, the process is immediately terminated.

【0133】このようにして上記ステップS195〜S
198が実行されると、関数型言語格納装置501に
は、図29に示す状態にまで関数型言語が格納される。
図21は、上記ステップS119の出力命令処理のフロ
ーチャートである。
As described above, steps S195 to S195
When 198 is executed, the functional language storage device 501 stores the functional language up to the state shown in FIG.
FIG. 21 is a flowchart of the output command processing in step S119.

【0134】出力命令作成装置425は、図9に示す出
力行情報格納装置422の格納データから、記号
「W」、「S」または「R」が記述されていいる出力記
述行に対応する出力信号名称(この例の場合は、「T.
SSTIM」)を抽出し、この信号名称を関数型言語格
納装置501の所定領域に格納して(ステップS20
1)、処理を終了する。
The output command creating device 425 outputs the output signal corresponding to the output description line in which the symbol “W”, “S” or “R” is described from the data stored in the output line information storage device 422 shown in FIG. Name (in this example, "T.
SSTIM ”), and stores the signal name in a predetermined area of the functional language storage device 501 (step S20).
1), end the process.

【0135】この処理により、関数型言語格納装置50
1には、図30に示す状態まで、関数型言語が格納され
る。図22は、上記ステップS120における監視ワー
ド生成命令作成処理のフローチャートである。
By this processing, the functional language storage device 50
1 stores a functional language up to the state shown in FIG. FIG. 22 is a flowchart of the monitoring word generation instruction creation processing in step S120.

【0136】監視ワード生成命令作成装置(F命令作成
装置)451は、まず、入出力条件格納装置412を検
索する(ステップS211)。そして、図8に示す格納
データから出力条件部eの該当列において「F」記号が
存在する出力記述行の行番号を抽出する。また、出力行
情報格納装置422から上記「F」記号が存在する出力
記述行の出力名称部aに記述されている出力名称(この
場合、SI000)を抽出する。さらに、入力条件部f
においてこの抽出した出力名称に対応する出力ワードメ
モリ(監視用ワードメモリ)内でOFF設定されている
ビットの位置を指定するワードメモリビット位置記号
(16進数値)を強調表示させるための監視ワード生成
命令を作成する。そして、この命令(ここでは、:=SI00
00 SI0000)を図5の関数型言語格納装置501の所定
領域に格納する。
The monitoring word generation instruction creating device (F instruction creating device) 451 first searches the input / output condition storage device 412 (step S211). Then, the line number of the output description line in which the “F” symbol exists in the corresponding column of the output condition part e is extracted from the stored data shown in FIG. Further, the output name (SI000 in this case) described in the output name part a of the output description line in which the “F” symbol exists is extracted from the output line information storage device 422. Further, the input condition part f
A monitoring word generation for highlighting a word memory bit position symbol (hexadecimal value) designating a bit position set OFF in an output word memory (monitoring word memory) corresponding to the extracted output name. Create instructions. And this instruction (here :: = SI00
00 SI0000) is stored in a predetermined area of the functional language storage device 501 of FIG.

【0137】以上の処理により、関数型言語格納装置5
01には、図7に示す501−10の部分までの関数型
言語が格納される。ここで、上記監視ワード生成命
令「:=SI0000 SI0000 」について説明する。この命令
は、出力ワードメモリSI0000の内容を同一のワー
ドメモリSI0000に代入する動作を表す。この動作
は、同一メモリに対する同一メモリ内容の代入でありP
C上では意味を持たない。しかし、プログラミング装置
(回路図作成・翻訳装置)上では、このメモリのアドレ
スを記憶する必要があるため、このような疑似命令コー
ドを作成する。
With the above processing, the functional language storage device 5
01 stores the functional languages up to the portion 501-10 shown in FIG. Here, the monitoring word generation instruction “: = SI0000 SI0000” will be described. This instruction represents an operation of substituting the contents of the output word memory SI0000 into the same word memory SI0000. This operation is the substitution of the same memory contents for the same memory, and P
It has no meaning on C. However, on a programming device (circuit diagram creating / translating device), it is necessary to store the address of this memory, so such a pseudo instruction code is created.

【0138】また、出力ワードメモリSI0000は、
図6に示す表形式回路記述を表示するモニタ画面上で、
入力条件部fにおいて強調表示すべきワードメモリビッ
ト位置記号(16進数値)を指定するデータを格納す
る。たとえば、オンラインモニタ時に出力ワードメモリ
SI0000の内容が16進数「FFFE」であったとする
と、この値は2進数表現では16桁で表されその最下位
ビットのみが「0」となる(ビット位置0がオフ)。こ
の場合、入力条件部fにおいてワードメモリビット位置
記号として「0」が記述されている部分を強調表示す
る。即ち、図6に示す例では、出力条件部eにおいて
「F」記号が設定されている列(48−1)上の16進
数値「0」(I.0002が記述されている入力記述
行)を、例えば赤色に強調表示する。
The output word memory SI0000 is
On the monitor screen that displays the tabular circuit description shown in FIG.
Data specifying a word memory bit position symbol (hexadecimal value) to be highlighted in the input condition part f is stored. For example, if the content of output word memory SI0000 is hexadecimal "FFFE" during online monitoring, this value is represented by 16 digits in binary notation, and only the least significant bit is "0" (bit position 0 is 0). off). In this case, the portion where "0" is described as the word memory bit position symbol in the input condition part f is highlighted. That is, in the example shown in FIG. 6, the hexadecimal value "0" (input description line in which I.0002 is described) on the column (48-1) in which the "F" symbol is set in the output condition part e. Is highlighted in red, for example.

【0139】一方、出力ワードメモリSI0000の内
容が16進数「FFFD」であったとすると、この値は2進
数表現では16桁で表されその最下位ビットから2ビッ
ト目のみが「0」となる(ビット位置1がオフ)。この
場合は、I.0005が記述されている行のワードメモ
リビット位置記号(16進数値)「1」を強調表示す
る。また、出力ワードメモリSI0000の内容が16
進数「FFFC」であったとすると、この値は2進数表現で
は16桁で表されその最下位ビットおよび最下位ビット
から2ビット目が「0」となる(ビット位置0および1
がオフ)。この場合、I.0002およびI.0005
が記述されている行のワードメモリビット位置記号(1
6進数値)「0」および「1」を共に強調表示する。
On the other hand, assuming that the content of the output word memory SI0000 is hexadecimal "FFFD", this value is represented by 16 digits in binary notation, and only the second bit from the least significant bit is "0" ( Bit position 1 is off). In this case, I. The word memory bit position symbol (hexadecimal value) "1" in the row where 0005 is described is highlighted. Also, if the content of the output word memory SI0000 is 16
If it is a hexadecimal number "FFFC", this value is represented by 16 digits in a binary number representation, and the least significant bit and the second bit from the least significant bit become "0" (bit positions 0 and 1).
Is off). In this case, I. 0002 and I. 0005
Is described in the word memory bit position symbol (1
Hexadecimal value) “0” and “1” are both highlighted.

【0140】図31は、オンラインモニタ時のモニタ画
面の例である。同図は、列51に関する処理が実行され
ているときのモニタ画面を示している。このとき、列5
1では、出力記述行「K」に記述されている記号「F」
に従って、入力記述行「B」および「G」に記述されて
いるワードメモリビット位置記号(16進数値)が強調
表示されている。ここでは、●印で示している。
FIG. 31 shows an example of a monitor screen at the time of online monitoring. FIG. 11 shows a monitor screen when the process related to the column 51 is being executed. At this time, column 5
1, the symbol "F" described in the output description line "K"
Accordingly, the word memory bit position symbols (hexadecimal values) described in the input description lines "B" and "G" are highlighted. Here, it is indicated by the mark ●.

【0141】上述のように、起動条件や運転条件等は、
出力ワードメモリ上において、ワードメモリビット位置
記号が示す16進数値に対応するビットに格納されてい
る。例えば、ワードメモリビット位置記号が示す16進
数値が「0」であれば、上記条件等は、ビットM.00
00に格納される。一方、出力条件部eにおいて記号
「F」が記述されている行の名称「SI0000」に対
応する出力ワードメモリにおいて、たとえば、16進数
で「FFFE」を設定しておけば、その16進数値が「0」
であるワードメモリビット位置記号を強調表示させる。
すなわち、出力ワードメモリSI0000に16進数で
「FFFE」を設定しておけば、ビットM.0000が故障
要因となる場合、このビットM.0000に関与してい
る入力条件部fのワードメモリビット位置記号「0」を
強調表示させることができる。ここで、ワードメモリビ
ット位置記号「0」に対応する論理式は、論理部dに記
述されているので、列48−1に関する処理においてビ
ットM.0000が故障要因となる場合には、入力信号
「I.0002」、「I.0003」または「I.00
04」のいれかに原因があることが容易に認識でき、故
障解析を迅速に行うことができる。
As described above, the starting conditions, operating conditions, etc.
On the output word memory, it is stored in the bit corresponding to the hexadecimal value indicated by the word memory bit position symbol. For example, if the hexadecimal value indicated by the word memory bit position symbol is “0”, the above condition and the like are satisfied when the bit M. 00
00 is stored. On the other hand, in the output word memory corresponding to the name “SI0000” of the line in which the symbol “F” is described in the output condition part e, for example, if “FFFE” is set in hexadecimal, the hexadecimal value becomes "0"
Is highlighted.
That is, if "FFFE" is set in the output word memory SI0000 in hexadecimal, the bit M.F. 0000 becomes a failure factor, this bit The word memory bit position symbol “0” of the input condition part f related to 0000 can be highlighted. Here, since the logical expression corresponding to the word memory bit position symbol “0” is described in the logical part d, the bit M.D. If 0000 causes a failure, the input signal “I.0002”, “I.0003”, or “I.00”
04 "can be easily recognized as having a cause, and failure analysis can be performed quickly.

【0142】このように、図11に示す全体処理のステ
ップS111〜S120によって、図6に示す表形式回
路記述の出力条件部e並びに入力条件部fの1列目の記
述データに基づく関数型言語変換が行われる。そして、
続くステップS114〜S120が繰り返されて2列目
以降についても上記変換が行われ、図6の表形式回路記
述が図7に示す関数型言語に変換されて、関数型言語格
納装置501に格納される。
As described above, by the steps S111 to S120 of the overall processing shown in FIG. 11, the functional language based on the description data in the first column of the output condition part e and the input condition part f of the tabular circuit description shown in FIG. Conversion is performed. And
The following steps S114 to S120 are repeated, and the above-described conversion is performed for the second and subsequent columns. The table-form circuit description in FIG. 6 is converted into the functional language shown in FIG. 7 and stored in the functional language storage device 501. You.

【0143】以上説明したように、本実施例によれば、
記号「A」およびワードメモリビット位置記号(16進
数値)を用いることにより、ビットメモリ(I.000
2,I.0003,I.0004,I.0005)に割
り付けられた自動運転等の起動条件や運動条件等を、出
力ワードメモリ(M.0000,M0001)に収集す
る記述が容易に可能である。
As described above, according to this embodiment,
By using the symbol "A" and the word memory bit position symbol (hex value), the bit memory (I.000)
2, I. 0003, I. 0004, I. [0005] It is possible to easily describe, in the output word memory (M.0000, M0001), the start conditions and the exercise conditions of the automatic driving and the like assigned to the above-mentioned “0005”).

【0144】また、このようにして得られたワードメモ
リの各ビット(M0000,M0001)を使用して起
動条件や運転条件等を作成するための論理を、可読性良
く記述することも可能である。
Further, it is possible to describe the logic for creating the start condition, the operation condition and the like using the respective bits (M0000, M0001) of the word memory obtained in this way with good readability.

【0145】さらに、上記条件監視用ワードメモリにお
いて故障要因となるワードメモリを強調表示することが
できる。
Further, in the condition monitoring word memory, the word memory which causes a failure can be highlighted.

【0146】[0146]

【発明の効果】以上説明したように、本発明によれば、
以下の効果が得られる。出力記述行の出力条件部にワー
ドメモリ割付記号を記述することにより、任意のワード
メモリのビットベースアドレスを指定でき、さらに入力
記述行の入力条件部にワードメモリビット位置指定記号
を記述することにより、上記ビットベースアドレスの任
意のビット位置を指定できる。そして、上記ワードメモ
リ割付記号により、このビット位置に論理部の論理演算
結果または入力名称部に名称が記述されている入力信号
を書き込む指定ができるので、自動運転等の起動条件や
運転条件を監視する場合に監視すべき外部入力接点情報
や内部メモリ等の監視情報を1ワードのメモリの中に収
集するための回路記述を小規模な回路で可読性良く表形
式で記述できると共に、上記のようにして監視情報の収
集に用いたワードメモリの任意のビットを用いて起動条
件や運転条件等を監視するための回路をも可読性良く表
形式で記述できる。
As described above, according to the present invention,
The following effects can be obtained. By describing the word memory allocation symbol in the output condition part of the output description line, the bit base address of any word memory can be specified. In addition, by describing the word memory bit position designation symbol in the input condition part of the input description line , Any bit position of the bit base address can be designated. The word memory allocation symbol allows designation of writing of a logical operation result of a logical part or an input signal whose name is described in an input name part in this bit position, so that a start condition and an operation condition such as an automatic operation can be monitored. In this case, the circuit description for collecting the external input contact information to be monitored and the monitoring information such as the internal memory in a one-word memory can be described in a small-sized circuit with good readability in a tabular form. Thus, a circuit for monitoring start-up conditions, operating conditions, and the like using arbitrary bits of the word memory used for collecting monitoring information can be described in a table format with good readability.

【0147】また、出力記述行の出力条件部に強調表示
記号を記述することにより、その強調表示記号を記述し
た出力記述行に対応するワードメモリに内容に従って、
所定のワードメモリビット位置記号を強調表示させるこ
とができる。そして、この強調表示に係わる記述は、小
さなスペースで行うことができ、可読性もよい。このた
め、プログラマブルコントローラの動作状態を把握しや
すく、障害等が発生した場合には、迅速に切りわけを行
うことができる。
Further, by describing the highlighting symbol in the output condition part of the output description line, the word memory corresponding to the output description line in which the highlighting symbol is described is written according to the contents.
Certain word memory bit position symbols can be highlighted. The description related to the highlighting can be made in a small space and has good readability. For this reason, the operating state of the programmable controller can be easily grasped, and if a failure or the like occurs, the switching can be quickly performed.

【0148】さらに、上記形式の回路記述における上記
ワードメモリ割付記号及びワードメモリビット位置記号
により指定されるあるワードメモリへのビット収集動作
を、PC上で実行可能なプログラム命令に自動的に変換
できる。また、強調表示記号を用いて指定されるワード
メモリビット位置記号を強調表示させるための記述をP
C上で実行可能なプログラム命令に自動的に変換でき
る。
Further, the bit collection operation to a certain word memory designated by the word memory allocation symbol and the word memory bit position symbol in the circuit description of the above format can be automatically converted into a program instruction executable on a PC. . A description for highlighting a word memory bit position symbol specified using a highlighting symbol is described in P.
It can be automatically converted to a program instruction executable on C.

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

【図1】本発明の原理説明図である。FIG. 1 is a diagram illustrating the principle of the present invention.

【図2】本発明の一実施例の表形式回路記述の方法を説
明するための図である。
FIG. 2 is a diagram for explaining a method of describing a circuit in a table format according to an embodiment of the present invention.

【図3】図2の表形式回路記述と等価な論理回路図であ
る。
FIG. 3 is a logic circuit diagram equivalent to the tabular circuit description of FIG. 2;

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

【図5】本発明の一実施例の回路図翻訳装置のブロック
図である。
FIG. 5 is a block diagram of a circuit diagram translator according to one embodiment of the present invention.

【図6】表形式回路記述の一具体例を示す図である。FIG. 6 is a diagram illustrating a specific example of a tabular circuit description.

【図7】図6の表形式回路記述と等価なプログラムを示
す図である。
FIG. 7 is a diagram showing a program equivalent to the tabular circuit description of FIG. 6;

【図8】入出力条件格納装置の状態図である。FIG. 8 is a state diagram of the input / output condition storage device.

【図9】出力行情報格納装置の状態図である。FIG. 9 is a state diagram of an output line information storage device.

【図10】入力論理格納装置の状態図である。FIG. 10 is a state diagram of the input logical storage device.

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

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

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

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

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

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

【図17】ビット収集命令作成処理のフローチャートで
ある。
FIG. 17 is a flowchart of a bit collection instruction creation process.

【図18】&命令作成処理のフローチャート(その1)
である。
FIG. 18 is a flowchart of an & instruction creation process (part 1);
It is.

【図19】&命令作成処理のフローチャート(その2)
である。
FIG. 19 is a flowchart of an instruction creation process (part 2);
It is.

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

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

【図22】監視ワード生成命令作成処理のフローチャー
トである。
FIG. 22 is a flowchart of a monitoring word generation instruction creating process.

【図23】関数型言語格納装置に格納された関数型言語
を説明する図(その1)である。
FIG. 23 is a diagram (part 1) illustrating a functional language stored in a functional language storage device.

【図24】出力信号名称とタイマ現在値との対応関係を
説明する図である。
FIG. 24 is a diagram illustrating the correspondence between output signal names and timer current values.

【図25】関数型言語格納装置に格納された関数型言語
を説明する図(その2)である。
FIG. 25 is a diagram (part 2) for explaining the functional language stored in the functional language storage device.

【図26】ビット収集命令格納装置の状態図である。FIG. 26 is a state diagram of a bit collection instruction storage device.

【図27】関数型言語格納装置に格納された関数型言語
を説明する図(その3)である。
FIG. 27 is a diagram (part 3) for explaining the functional language stored in the functional language storage device;

【図28】関数型言語格納装置に格納された関数型言語
を説明する図(その4)である。
FIG. 28 is a diagram (part 4) illustrating the functional language stored in the functional language storage device.

【図29】関数型言語格納装置に格納された関数型言語
を説明する図(その5)である。
FIG. 29 is a diagram (No. 5) illustrating a functional language stored in the functional language storage device.

【図30】関数型言語格納装置に格納された関数型言語
を説明する図(その6)である。
FIG. 30 is a diagram (part 6) for explaining the functional language stored in the functional language storage device;

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

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

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

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

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

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

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

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

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

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

【図41】ラダー図によるコードメモリへの並べ換えの
記述を説明する図である。
FIG. 41 is a diagram illustrating a description of rearrangement in a code memory using a ladder diagram.

【図42】FB図によるワードメモリへの並べ換えを説
明する図である。
FIG. 42 is a diagram for explaining rearrangement to a word memory according to the FB diagram;

【図43】従来の表形式回路記述によるワードメモリへ
の並換えを説明する図である。
FIG. 43 is a diagram illustrating a conventional reordering to a word memory based on a tabular circuit description.

【図44】ラダー図による起動条件や運転条件を監視す
るためのワードメモリの作成の一例を示す図である。
FIG. 44 is a diagram showing an example of creation of a word memory for monitoring a start condition and an operation condition by a ladder diagram.

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

10 出力記述行 11 出力名称部 12 出力条件部 20 入力記述行 21 入力名称部 22 入力条件部 23 論理部 31 出力メモリ 32 監視用メモリ 401 ソース格納装置 411 入出力条件抽出装置 412 入出力条件格納装置 413 W,S,R命令作成装置 421 出力行抽出装置 422 出力行情報格納装置 423 タイマ命令作成装置 424 タイマ設定値作成装置 425 出力命令作成装置 431 入力論理抽出装置 432 入力論理格納装置 433 &命令作成装置 441 ビット収集命令作成装置(A命令作成装
置) 442 ビットベースアドレス格納装置 443 ビット収集命令格納装置 451 監視ワード生成命令作成装置(F命令作成
装置) 501 関数型言語格納装置
Reference Signs List 10 output description line 11 output name part 12 output condition part 20 input description line 21 input name part 22 input condition part 23 logic part 31 output memory 32 monitoring memory 401 source storage device 411 input / output condition extraction device 412 input / output condition storage device 413 W, S, R instruction creation device 421 Output row extraction device 422 Output row information storage device 423 Timer instruction creation device 424 Timer set value creation device 425 Output instruction creation device 431 Input logic extraction device 432 Input logic storage device 433 & Instruction creation Device 441 Bit collection instruction creation device (A instruction creation device) 442 Bit base address storage device 443 Bit collection instruction storage device 451 Monitoring word generation instruction creation device (F instruction creation device) 501 Functional language storage device

───────────────────────────────────────────────────── フロントページの続き (72)発明者 乳井 直樹 神奈川県川崎市川崎区田辺新田1番1号 富士電機株式会社内 (72)発明者 渡辺 悟 神奈川県川崎市川崎区田辺新田1番1号 富士電機株式会社内 (72)発明者 栃木 勉 神奈川県川崎市川崎区田辺新田1番1号 富士電機株式会社内 (56)参考文献 特開 平6−149311(JP,A) 特開 平6−4111(JP,A) 特開 平2−143301(JP,A) 実開 昭58−142708(JP,U) (58)調査した分野(Int.Cl.7,DB名) G05B 19/04 - 19/05 ──────────────────────────────────────────────────続 き Continuing on the front page (72) Inventor Naoki Mitsui 1-1, Tanabe Nitta, Kawasaki-ku, Kawasaki, Kanagawa Prefecture Inside Fuji Electric Co., Ltd. (72) Inventor Satoru Watanabe 1st Tanabe Nitta, Kawasaki-ku, Kawasaki-shi, Kanagawa Prefecture No. 1 Fuji Electric Co., Ltd. (72) Inventor Tsutogi Tsutomu 1-1, Tanabe Nitta, Kawasaki-ku, Kawasaki-shi, Kanagawa Prefecture Fuji Electric Co., Ltd. (56) References JP-A-6-149311 (JP, A) JP-A-6-14311 (JP, A) JP-A-2-143301 (JP, A) JP-A-58-142708 (JP, U) (58) Fields investigated (Int. Cl. 7 , DB name) G05B 19 / 04-19/05

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 プログラマブルコントローラ上で動作す
るプログラムを記述した回路図を作成する回路図作成装
であって、 出力を記述するための複数の出力記述行および該出力に
対応する入力を記述するための複数の入力記述行から構
成され、上記各出力記述行が、出力信号の名称を記述す
る出力名称部および出力条件を記述する出力条件部を有
し、上記各入力記述行が、入力信号の名称を記述する入
力名称部および入力条件を記述する入力条件部を有し、
複数の入力記述行に対して論理回路を記述する論路部が
設けられており、上記入力条件部および出力条件部がそ
れぞれ互いに対応する列構造を有しているフォーマット
の回路図記述用ひな形を格納するひな形格納手段と、 上記出力名称部に出力信号の名称を記述する出力名称入
力手段と、 上記出力条件部に出力条件を記述する出力条件入力手段
と、 上記入力名称部に入力信号の名称を記述する入力名称入
力手段と、 上記論路部において、上記入力名称部に記述された名称
の信号の入力を意味する入力記号とそれら入力信号に対
する論理演算を意味する論理演算記号を記述する論理入
力手段と、 上記出力条件部において、上記入力名称部に名称が記述
されている入力信号または上記論理部の論理演算結果が
当該出力記述行に対応する出力メモリに書き込まれてい
ることを示すメモリ割付記号を記述するメモリ割付記号
入力手段と、 上記入力条件部において、上記入力名称部に名称が記述
されている入力信号または上記論理部の論理演算結果を
上記出力メモリに書き込むときの該出力メモリ内のビッ
ト位置を指定するビット位置指定記号を記述するビット
位置指定記号入力手段と、 上記各手段により入力された記号を上記ひな形の回路図
記述領域と対応づけて格納する記憶手段と、を有し、 上記メモリ割付記号が設定されている出力記述行に対応
する信号は、そのメモリ割付記号が設定されている列に
対応する列においてビット位置指定記号が記述されてい
る行の入力信号または論理演算結果により表されること
を特徴とする回路図作成装置。
1. A circuit diagram creating apparatus for creating a circuit diagram that describes a program running on a programmable controller, a plurality of output lines described and output to describe the output
Multiple input description lines to describe the corresponding input
Each output description line describes the name of an output signal.
Output name part and output condition part that describes the output condition
Each of the input description lines is an input that describes the name of an input signal.
An input condition part for describing the input name part and the input condition,
The logic unit that describes the logic circuit for multiple input description lines
The input condition part and output condition part
Formats with column structures that correspond to each other
A model storing means for storing the model for describing the circuit diagram, and an output name storing the name of the output signal in the output name section.
Output means and output condition input means for describing output conditions in the output condition section.
When the input name entry that describes the name of the input signal to the input name section
Force means and the name described in the input name section in the logic section
Input symbols that indicate the input of
A logical input that describes the logical operation symbol
In the output means and the output condition part, the name is described in the input name part
Input signal or the logical operation result of the above logic unit
Is written to the output memory corresponding to the output description line.
Allocation code that describes the memory allocation symbol indicating that
In the input means and the input condition section, the name is described in the input name section
Input signal or the logical operation result of the above logic unit
Bits in the output memory when writing to the output memory
Bit that specifies the bit position specification symbol
Position designation symbol input means, and the symbol input by each of the above means, the circuit diagram of the model
Storage means for storing in association with the description area, and corresponding to the output description line in which the memory allocation symbol is set.
Signal is assigned to the column where the memory allocation symbol is set.
The bit position designation symbol is described in the corresponding column.
A circuit diagram creation apparatus characterized by being represented by an input signal of a row or a logical operation result .
【請求項2】 上記論理部に記述されている論理演算記
号に基づき上記入力名称部に記述されている名称を用い
て上記ビット位置指定記号に対応する論理式を作成し、
該論理式を上記ビット位置指定記号と対応づけて上記記
憶手段に格納することを特徴とする請求項1に記載の回
路図作成装置。
2. A logical expression corresponding to the bit position designation symbol is created using a name described in the input name portion based on a logical operation symbol described in the logic portion,
2. The circuit diagram creating apparatus according to claim 1, wherein said logical expression is stored in said storage means in association with said bit position designation symbol.
【請求項3】 上記出力条件部において、当該出力記述
行に対応する監視用メモリの内容に基づいて、上記ビッ
ト位置指定記号の中の該当するものを強調表示させるこ
とを指定する強調表示記号を記述する手段をさらに有
し、 上記記憶手段は、強調表示記号を上記形式の回路図記述
領域に対応づけて格納することを特徴とする請求項1に
記載の回路図作成装置。
3. The output condition section according to claim 1, further comprising: a highlighting symbol for designating that a corresponding one of the bit position designation symbols is to be highlighted based on the contents of the monitoring memory corresponding to the output description line. More means to describe
2. The circuit diagram creating apparatus according to claim 1, wherein the storage unit stores the highlighted symbols in association with the circuit diagram description area in the format.
【請求項4】 請求項1に記載の回路図作成装置により
作成された回路図をプログラマブルコントローラ用の言
語に翻訳する回路図翻訳装置であって、 上記出力条件部から出力条件を抽出し、上記入力条件部
から入力条件を抽出してそれぞれ記憶する入出力条件抽
出・記憶手段と、 上記出力名称部から出力名称を抽出し、これを出力行情
報として記憶する出力行情報抽出・記憶手段と、 上記論理部に記述されている論理回路を所定の言語に対
応するステートメントに変換して記憶する入力論理抽出
・記憶手段と、 上記入出力条件抽出・記憶手段を参照して上記メモリ割
付記号が記述されている出力記述行を抽出し、この抽出
情報から上記出力メモリのベースアドレスを作成すると
共に、上記入出力条件抽出・記憶手段、上記出力行情報
抽出・記憶手段および上記入力論理抽出・記憶手段に記
憶されている抽出情報を読み出し、これらの抽出情報お
よび上記出力メモリのベースアドレスに基づいて、上記
メモリビット位置指定記号が指定する上記出力メモリ内
におけるビットに、該メモリビット位置指定記号が記述
されている入力記述行に対応する入力信号または上記論
理部の論理演算結果を書き込むビット収集命令を作成
し、これを上記記憶手段の所定領域に格納するビット収
集命令作成手段と、 を有することを特徴とする回路図翻訳装置。
4. The circuit diagram creating apparatus according to claim 1,
A circuit diagram translator for translating a created circuit diagram into a language for a programmable controller, wherein input / output conditions for extracting output conditions from the output condition unit, extracting input conditions from the input condition unit, and storing the input conditions, respectively. Extraction / storage means; output line information extraction / storage means for extracting an output name from the output name section and storing the output name as output line information; and a logic circuit described in the logic section corresponding to a predetermined language. An input logic extracting / storing means for converting the statement into a statement to be stored, and an output description line in which the memory allocation symbol is described with reference to the input / output condition extracting / storing means. A base address of the memory is created and stored in the input / output condition extraction / storage means, the output line information extraction / storage means, and the input logic extraction / storage means. The extracted extraction information is read out, and based on the extracted information and the base address of the output memory, the memory bit position designation symbol is described in a bit in the output memory designated by the memory bit position designation symbol. A bit collection instruction for writing an input signal corresponding to an input description line or a logical operation result of the logic unit, and storing the bit collection instruction in a predetermined area of the storage unit. Circuit diagram translator.
【請求項5】 請求項3に記載の回路図作成装置により
作成された回路図をプログラマブルコントローラ用の言
語に翻訳する回路図翻訳装置であって、 上記出力条件部から出力条件を抽出し、上記入力条件部
から入力条件を抽出してそれぞれ記憶する入出力条件抽
出・記憶手段と、 上記出力名称部から出力名称を抽出し、これを出力行情
報として記憶する出力行情報抽出・記憶手段と、 上記入出力条件抽出・記憶手段および上記出力行情報抽
出・記憶手段を参照して上記強調表示記号が記述されて
いる出力記述行を抽出し、この抽出した出力記述行に対
応する監視用メモリの内容に基づいて、上記ビット位置
指定記号の中の該当記号を強調表示させるための監視ワ
ード生成命令を作成し、これを上記記憶手段の所定領域
に格納する監視ワード生成命令作成手段と、 を有することを特徴とする回路図翻訳装置。
5. A circuit diagram creating apparatus according to claim 3, wherein
A circuit diagram translator for translating a created circuit diagram into a language for a programmable controller, wherein input / output conditions for extracting output conditions from the output condition unit, extracting input conditions from the input condition unit, and storing the input conditions, respectively. Extraction / storage means; output line information extraction / storage means for extracting an output name from the output name section and storing the output name as output line information; input / output condition extraction / storage means; and output line information extraction / storage An output description line in which the above-mentioned highlighting symbol is described is extracted by referring to the means. Based on the contents of the monitoring memory corresponding to the extracted output description line, the corresponding symbol in the above-mentioned bit position designation symbol is extracted. A monitoring word generation instruction generating means for generating a monitoring word generation instruction for highlighting and storing the generated instruction in a predetermined area of the storage means. Diagram translator.
JP16062895A 1995-06-27 1995-06-27 Circuit diagram creation device and circuit diagram translation device Expired - Fee Related JP3340592B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16062895A JP3340592B2 (en) 1995-06-27 1995-06-27 Circuit diagram creation device and circuit diagram translation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16062895A JP3340592B2 (en) 1995-06-27 1995-06-27 Circuit diagram creation device and circuit diagram translation device

Publications (2)

Publication Number Publication Date
JPH0916219A JPH0916219A (en) 1997-01-17
JP3340592B2 true JP3340592B2 (en) 2002-11-05

Family

ID=15719049

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16062895A Expired - Fee Related JP3340592B2 (en) 1995-06-27 1995-06-27 Circuit diagram creation device and circuit diagram translation device

Country Status (1)

Country Link
JP (1) JP3340592B2 (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
JPH0916219A (en) 1997-01-17

Similar Documents

Publication Publication Date Title
JP2765969B2 (en) Schematic data-driven program development support system
US4885717A (en) System for graphically representing operation of object-oriented programs
JP3195839B2 (en) How to monitor the operation of power plant facilities
EP0553731A2 (en) Programmable controller
US20080162104A1 (en) Simulation data creation supporting device
JP3340592B2 (en) Circuit diagram creation device and circuit diagram translation device
CN113711142A (en) Debugging assistance device, debugging assistance method, and debugging assistance program
US20260029995A1 (en) Method for generating a control program for an automation system and development environment
Lin et al. Data structure visualization on the web
US20220350601A1 (en) Heterogeneous embedded method and device for tabular processing and execution of operation flow
JP3124131B2 (en) Tabular circuit description device and method, and functional language conversion device and method
Chmiel et al. The way of ladder diagram analysis for small compact programmable controller
KR102509859B1 (en) Apparatus and method for extracting common command information from PLC ladder information
JPH01229321A (en) User interface generation tool
KR100423742B1 (en) Exclusive control system by sequential function chart
EP0416509A2 (en) Programmable controller, and method and apparatus for programming same
JPS6378238A (en) Object code generating device
JPS62165684A (en) Driving training simulator
JP3164730B2 (en) Tabular circuit description generator and method
CN121478298A (en) Target program generation methods, systems, computer equipment, and computer program products
JP2519250B2 (en) Sequence logic program generator
JP2827724B2 (en) Program debug processing method
JPH0443281B2 (en)
JP2629955B2 (en) Expert system construction equipment
JPH0334021A (en) Converting method for program language

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: 20020806

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: 20070816

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20080816

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20080816

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090816

Year of fee payment: 7

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: 20090816

Year of fee payment: 7

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20090816

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100816

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees