JPS63631A - Rule processing method - Google Patents

Rule processing method

Info

Publication number
JPS63631A
JPS63631A JP61143082A JP14308286A JPS63631A JP S63631 A JPS63631 A JP S63631A JP 61143082 A JP61143082 A JP 61143082A JP 14308286 A JP14308286 A JP 14308286A JP S63631 A JPS63631 A JP S63631A
Authority
JP
Japan
Prior art keywords
condition
rule
section
control
internal code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP61143082A
Other languages
Japanese (ja)
Inventor
Ryoji Maekawa
前川 亮二
Tsutomu Tashiro
勤 田代
Isao Toshima
都島 功
Norihisa Komoda
薦田 憲久
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.)
Hitachi Microcomputer System Ltd
Hitachi Ltd
Original Assignee
Hitachi Ltd
Hitachi Microcomputer Engineering 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 Hitachi Ltd, Hitachi Microcomputer Engineering Ltd filed Critical Hitachi Ltd
Priority to JP61143082A priority Critical patent/JPS63631A/en
Publication of JPS63631A publication Critical patent/JPS63631A/en
Pending legal-status Critical Current

Links

Classifications

    • G—PHYSICS
    • G06—COMPUTING OR CALCULATING; COUNTING
    • G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N5/00—Computing arrangements using knowledge-based models
    • G06N5/04—Inference or reasoning models

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Artificial Intelligence (AREA)
  • Executing Machine-Instructions (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

PURPOSE:To obtain a rule processing system which can be adapted even to a control object which requires a control response at a high speed, by executing a processing by deciding that a condition has been formed, in case a state of an equipment group which has been described in the condition of a rule does not exist in a state storage part. CONSTITUTION:In case a character-string of an IF part and a character-string of a state storage part have not coincided with each other, a condition decision processing for handling negatively the character-string whose condition has been formed can be executed, therefore,the negative contents such as 'some equipment is not empty' can be described as a condition 'IFNOT (equipment is empty)', and a surplus character-string such as '(equipment is not empty)' is not required. Accordingly, in case of a rule which has used many negative contents as the condition, the character- string stored in the state storage part can be curtailed remarkably, and a control designation can be determined at a high speed. In this way, even against a condition discriminating control of a control object for which a high speed property is required, the professional program development personnel is not required, and a control engineer himself can execute easily a desired condition discriminating control by describing a controlling system by an IF-THEN rule.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、自動化工場のような複数の設備からなるシス
テ11において、各設備の状1nを計′X″1.機に・
  取り込み、所定の制御論理に従い条件判定を行い。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention provides a system 11 consisting of a plurality of equipment such as an automated factory, in which the shape of each equipment is reduced to a total of 'X''1.
It is imported and conditions are judged according to predetermined control logic.

条件が成立すれば制御論理で指示された制御指令を各設
備に発行するような条件判別制御に適したルール処理方
式に関する。
The present invention relates to a rule processing method suitable for condition discrimination control that issues control commands specified by control logic to each piece of equipment when a condition is established.

〔従来の技術〕[Conventional technology]

一般に。1−述の条件判別制御では1条件を判定し制御
指令を決定するための制御論理をFORTl+八N等の
汎へ言語を用いてプログラミングし制御装置I¥ヒで実
行する方式がとr)れている。
in general. In the condition discrimination control described in 1-1, a method is used in which the control logic for determining one condition and determining a control command is programmed using a general language such as FORT1+8N and executed by the control device I\H. ing.

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

従来の方法では、プログラムの作成、変(に時間がかか
り、更に専門のプログラミング要員を必要とするという
問題がある。このため、自動化工場等におけろ設備の植
成の変(等に際し、制御プログラムを変更することが迅
速に行えないという欠点があった。
Conventional methods have the problem that it takes time to create and modify programs, and requires specialized programming staff.For this reason, in automated factories, etc., when changing the installation of equipment, etc., it is difficult to control The drawback was that the program could not be changed quickly.

そこで、設備群制御の実施・変更が容易な「設備群制御
方式」を提案した(特願昭58−79341号参照)。
Therefore, we proposed an ``equipment group control method'' that makes it easy to implement and change equipment group control (see Japanese Patent Application No. 79341/1983).

この方式は、制御論JiltをrTI−”(条件)、T
l1l<N (論理、動作)」というルール形式(以下
、T li’−THIiNルール父は、ルールと呼ぶ)
で記述すろことにより制御プログラムを作成できるもの
であり、制御プ、ログラムの作成が容易で、制御論理の
理解、変更性にすぐれている。しかし、その方式では、
IF部の条件判定において1条件として記述された文字
列と対象の状Jルを表わす文字列とが一致した場合に条
件成立とする、肯定的なルール処理方式であった。従っ
て、ある設備が空でないといった否定の内容を条件に記
述するには、その設(イuが空という文字列とは別に空
でないという意味を表わす文字列を用意する必要がある
にのため文字列の種類が増え、設備の状態を取り込むの
に時間がかかり、対象の規模が大きくなると充分な応答
性が得られないという欠点がある。
This method sets the control logic Jilt to rTI-” (condition), T
The rule format is "l1l<N (logic, behavior)" (hereinafter, Tli'-THIiN rule father is called a rule)
It is possible to create a control program by writing it in , making it easy to create a control program, and the control logic is easy to understand and change. However, with that method,
This was an affirmative rule processing method in which the condition is satisfied when the character string described as one condition matches the character string representing the target shape in the condition judgment of the IF section. Therefore, in order to describe a negative condition such as that a certain facility is not empty, it is necessary to prepare a string that indicates that the facility is not empty, in addition to the string that indicates that the facility is not empty. As the number of row types increases, it takes time to acquire the equipment status, and as the scale of the target increases, sufficient responsiveness cannot be obtained.

以下、これを説明する。第:3図は、前記設備群制御方
式の機能構成図である。11は、ルール記憶部、12は
ルール運用部、13は状態記憶部、14は状態取込み部
、]5は制御対象の設備群である。第3図に示すように
、状態取込み部14は、設備群15の状態を調べ、その
状態を文字列に変換し、状態記憶部13に格納する。ル
ール運用部12は、ルールを記憶しであるルール記憶部
]1から1個ずつルールを取り出し、状態記憶部1;3
に対して条件判定を行い、条件が満足すれば。
This will be explained below. FIG. 3 is a functional configuration diagram of the equipment group control method. 11 is a rule storage unit, 12 is a rule operation unit, 13 is a status storage unit, 14 is a status import unit, ] 5 is a group of equipment to be controlled. As shown in FIG. 3, the status import unit 14 examines the status of the equipment group 15, converts the status into a character string, and stores it in the status storage unit 13. The rule operation unit 12 extracts rules one by one from the rule storage unit 1 which stores rules, and stores them in the state storage unit 1;
Perform conditional judgment on , and if the condition is satisfied.

TiI4惰部の結論を状態記憶部13に追加する。」−
記設備群制御方式は1以上の処理を繰り返すことにより
、最終的に実行すべき制御内容を決定する方式を採用し
ている。上記処理で、ルールのパラメータ部(文字列内
で’ < ’ +  ’ > ’で囲まれた部分)に数
値等の定数が指定しであるルールの場合は、I F部の
文字列のすべてに対して、状態記憶部13の文字列と一
致判定を行う。−致した場合Ti1l<N部の文字列を
そのまま状態記憶部に書き加える。
The conclusion of the TiI4 inertia section is added to the state storage section 13. ”−
The equipment group control method described above employs a method in which the content of control to be finally executed is determined by repeating one or more processes. In the above process, if a constant such as a numerical value is specified in the parameter part of the rule (the part surrounded by '<' + '>' in the character string), all of the character strings in the IF part are On the other hand, a match with the character string in the state storage unit 13 is determined. - If it matches, the character string of Ti1l<N part is written as it is to the state storage section.

パラメータ部にW、X、Y、Z等の変数を含むルールの
場合は、IF部の文字列で変数の指定しであるパラメー
タ部を除く部分に対して、状態記憶部[3の文字列と一
致判定を行う。次に一致した状態記憶部13のすべての
文字列においてIF部の文字列で変数の指定しであるパ
ラメータ部の内容を変数値として取り込み一時記憶して
おく。
In the case of a rule that includes variables such as W, X, Y, Z, etc. in the parameter section, the string in the state storage section Performs a match judgment. Next, in all the matching character strings in the state storage unit 13, the contents of the parameter part, which is a variable designation in the character string of the IF part, are taken as variable values and temporarily stored.

状態記憶部13に書き加えろ文字列は、THト;N部の
文字列において変数の指定しであるパラメータ部に記憶
していた変数値のうちT I=’部の複数の条件のAN
D条件を満足する変数値の組合せを代入したものである
。
The character string to be added to the state storage unit 13 is the AN of multiple conditions in the TI=' part of the variable values stored in the parameter part, which is the variable designation in the character string in the N part.
This is a result of substituting a combination of variable values that satisfy the D condition.

以上述べたように、従来方式は、ルールの1 )暢”部
の1つの文字列と同一の文字列が状態記憶部13に存在
した時のみ条件成立とし以上の処理を進める条件を肯定
的番ご処理する方式である。このため、設備は空でない
という否定の内容を条件に記述するには、゛(設備は空
)″という文字列とは別に、空でないという意味を表わ
す文字列“(設備は空でない)″を別に用意する必要が
あり、文字列の種類が増え、設(債の状1服を状態記憶
部13に格納する処理に時間がかかる。例えば、第1図
のNα3ルールの1番1−1のT +=”部のように、
パレット1は空でないという否定的な内容を条件に記述
するには、“(パレット〈1〉は空)″という文字列と
は別に゛(パレット<1.>は空でない)″という文字
列が必要である。また、Nα5ルールの2番11のT 
I”部のように、作成可能な製品から作成ずみでない製
品を選ぶ条件を記述するには、′(製品<×〉は作成ず
み)″という文字列とは別に″(製品<X>は作成ずみ
でない)″という文字列が必要である。このため、状J
n取込み部14は、″(パレツi〜〈1〉は空)I+、
J製品〈ハ〉は作成ずみ)″といった文字列とは別に゛
(パレットく2〉は空でない)′=、LL(j製品くB
〉は空でない)″といった余分な文字列を状態記憶部1
;3に格納しなければならない。従って従来方式では、
否定的な内容の条件を多く記述したルールでは状態記憶
部L 3に格納する文字列の種類が多くなり、状態記憶
部13に格納する処理に時間がかかり、充分な応答性が
得られないという欠点があった。
As described above, in the conventional method, the condition is established only when a character string identical to one character string in the 1) "fluent" part of the rule exists in the state storage unit 13, and the condition for proceeding with the above processing is set as an affirmative number. Therefore, in order to write the negative condition that the equipment is not empty, in addition to the character string ``(equipment is empty)'', the character string ``( It is necessary to separately prepare "The equipment is not empty)", the number of types of character strings increases, and it takes time to store the equipment (the equipment is not empty) in the state storage unit 13.For example, the Nα3 rule in Figure 1 Like the T+=" part of No. 1 1-1 of
To write a negative condition that palette 1 is not empty, write the string ``(Palette <1.> is not empty)'' in addition to the string ``(Palette <1> is empty).'' It is necessary.Also, T of No. 2 and 11 of Nα5 rule
To describe the condition for selecting a product that has not been created from among the products that can be created, as in part I'', in addition to the character string ``(product <X> is created)'', The string ``)'' is required. For this reason, the condition J
The n importing unit 14 reads ``(palette i ~ <1> is empty) I+,
In addition to the character strings such as ``J product〈C〉has been created)'', ゛(palette ku2〉 is not empty)'=, LL
〉 is not empty)'' is stored in the state storage unit 1.
;Must be stored in 3. Therefore, in the conventional method,
In a rule that describes many conditions with negative contents, the number of types of character strings to be stored in the state storage section L3 increases, and the processing of storing them in the state storage section 13 takes time, making it impossible to obtain sufficient responsiveness. There were drawbacks.

本発明の目的は、このような問題を解決し、条件判別制
御の実施が容易で、かつ高速の制御応答が要求される制
御対象に対しても適用可能なルール処理方式を提供する
ことにある。
An object of the present invention is to solve such problems and provide a rule processing method that allows easy implementation of condition discrimination control and is also applicable to controlled objects that require high-speed control responses. .

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

上記目的を達成するため本発明では、IF部の文字列と
状態記憶部の文字列が−致した場合条件成立とする従来
の文字列を1!r定的に扱う条件判定処理に加え、IF
部の文字列と状態記憶部の文字列が−致しなかった場合
に条件成立とする文字列を否定的に扱う条件判定処理を
加える。なお9文字列を否定的に扱う処理を行う■1・
部には条件識別子“NOT”を指定し区別する。これに
より。
In order to achieve the above object, the present invention changes the conventional character string in which the condition is met when the character string in the IF part and the character string in the state storage part match to 1! rIn addition to the condition judgment processing that is handled qualitatively, the IF
A condition determination process is added that treats the condition as negative if the character string in the part and the character string in the state storage part do not match. 9. Processing that treats character strings negatively ■1.
The condition identifier “NOT” is specified in the section to distinguish it. Due to this.

設備は空でないといった否定の内容を条件に記述するさ
いにも、′(設備は空)″という文字列を用い“IFN
OT(設備は空)”と記述でき、パ(設備は空でない)
′″といった文字列を必要としない。
Even when describing a negative condition such as that the equipment is not empty, the character string '(equipment is empty)'' is used to write the
OT (equipment is empty)” and PA (equipment is not empty)
There is no need for strings such as ``''.

第2図に、第1図のルールを条件識別子” N 01”
 ”を用い記述した例を示す。本例では、“(パレット
〈1〉は空でない)11,1“(製品<x>は作成ずみ
でない)″等の文字列が不要になり、パ(パレット〈2
〉は空でない)11.II(製品(B)は空でない)″
といった余分な文字列を状態記憶部に格納する必要がな
くなり、処理時間が短縮される。
In Figure 2, the rule in Figure 1 is added to the condition identifier "N 01".
”. In this example, character strings such as “(Palette <1> is not empty) 11,1” (Product <x> has not been created)” are unnecessary, and the <2
> is not empty)11. II (Product (B) is not empty)''
There is no need to store extra character strings such as this in the state storage unit, and processing time is shortened.

〔作用〕[Effect]

本発明では状態記憶部に格納する文字列の種数が削減さ
れ、設備の状態を状態記憶部13に格納する処理時+1
−I+を短縮することができる。
In the present invention, the number of types of character strings to be stored in the state storage section is reduced, and when the equipment state is stored in the state storage section 13, +1
−I+ can be shortened.

〔実施例〕〔Example〕

以下、本発明の実施例について、図面により説明する。 Embodiments of the present invention will be described below with reference to the drawings.

なお、従来の設備群制御方式において用いられている用
語等は、説明なしで以下の説明でも用いる場合があるの
で詳細は特願昭58−70341号を参照されたい。
Note that the terms used in the conventional equipment group control system may be used in the following explanation without explanation, so please refer to Japanese Patent Application No. 58-70341 for details.

第1図は1本発明の一実施例を示す設備群制御装置のブ
ロック構成図である。
FIG. 1 is a block configuration diagram of an equipment group control device showing an embodiment of the present invention.

制御装置は、記憶部601、制御部602、設備部60
3、状態信号線604、および指令信号線605から構
成される。記憶部601は、さらに、複数の情報記憶部
、すなわち人出力信号−内部コード対応情報記憶部60
(3、I li’ −TIIrr、N )’J−ル起動
情報記憶部607、I I−” −TH14Nルール情
報記憶部608、内部コード情報記憶部600、および
手続情報記憶部610の各エリアを有している。記憶部
601は、内部コード化されたrF−TIIENルール
、外部信号と内部コードの対応表等のデータを記憶して
おく部分である。制御部602は、記憶部601に格納
されている情報にもとづき、設備群603の状1ルを示
す状態信号を信号線604を介して取り込み、制御指令
を決定し、各設備60:3に信号線605を介して制御
信号を発信する。
The control device includes a storage section 601, a control section 602, and an equipment section 60.
3, a status signal line 604, and a command signal line 605. The storage unit 601 further includes a plurality of information storage units, that is, a human output signal-internal code correspondence information storage unit 60
(3, I li' -TIIrr, N) 'J-ru activation information storage section 607, I I-'-TH14N Each area of the rule information storage section 608, internal code information storage section 600, and procedure information storage section 610 is The storage unit 601 is a part that stores data such as internally coded rF-TIIEN rules and a correspondence table between external signals and internal codes. Based on the information displayed, a status signal indicating the state of the equipment group 603 is taken in via the signal line 604, a control command is determined, and a control signal is transmitted to each equipment 60:3 via the signal line 605. .

第4図は、第1図における人出力信号−内部コード対応
情報記憶部606の詳細説明図であって。
FIG. 4 is a detailed explanatory diagram of the human output signal-internal code correspondence information storage section 606 in FIG. 1.

第4図(a)が人力信号と内部コード、第4図(b)が
内部コードと出力信号の各対応テーブルである。
FIG. 4(a) is a correspondence table between human input signals and internal codes, and FIG. 4(b) is a correspondence table between internal codes and output signals.

この記憶部606は、第1図に示す状態信号線604、
指令信号線605等の外部信号と、内部処理の間のイン
タフェースのための情報を格納しておく部分である。
This storage unit 606 includes the status signal line 604 shown in FIG.
This is a part that stores information for an interface between external signals such as the command signal line 605 and internal processing.

第4図(a)に示す人力信号−内部コード対応テーブル
71は、状態信号a604の信号を、制御部602で取
り扱う内部コードに変換するための情報を格納しておく
テーブルである。
The human signal-internal code correspondence table 71 shown in FIG. 4(a) is a table that stores information for converting the status signal a604 into an internal code handled by the control unit 602.

このテーブル7】は、状態信号線604のエントリ・ア
ドレスを格納する状態信号線エントリ・エリア、その信
号線604に信号が発生した場合に対応する設備状態を
表わす内部コードを格納しておく数値コード・エリア、
およびパラメータ部分エリアから構成されている。制御
部602は。
Table 7] contains a status signal line entry area that stores the entry address of the status signal line 604, and a numerical code that stores an internal code that represents the equipment status corresponding to when a signal is generated on the signal line 604. ·area,
It consists of a parameter area and a parameter area. The control unit 602 is.

このテーブル71のデータにもとづき各状j原信号線6
04をアクセスし、信号が発生していれば対    応
する内部コードを作成する。作成された内部コードは、
内部コード情帽記憶部609内に格納される。ここで、
状態信号線604の信号がオンフオの2値情報の場合、
制御部602は、テーブル71に格納されている内部コ
ードをそのままの形で取り出し、内部コードを作成した
ことにする。 ゛例えば、第4図(、)のアドレスHの
内部コードがその場合を示している。状f111100
004の情報がバーコードの読み取り情報等の数値情報
の場合には、テーブルに格納されている内部コードのパ
ラメータ部分で変数(W、、 X、 Y、 7.等)が
指定されているものに、その情報を値として書き込んだ
内部コードを作成する。
Based on the data of this table 71, each state j original signal line 6
04, and if a signal is generated, create the corresponding internal code. The internal code created is
It is stored in the internal code information storage section 609. here,
If the signal on the status signal line 604 is binary information of on/off,
The control unit 602 extracts the internal code stored in the table 71 as it is, and assumes that the internal code has been created. For example, the internal code at address H in FIG. 4(,) shows this case. Status f111100
If the information in 004 is numerical information such as barcode reading information, the variable (W,, X, Y, 7, etc.) specified in the parameter part of the internal code stored in the table. , create internal code that writes that information as a value.

例えば、第4図(a)のアドレスAの内部コードがその
場合を示している。すなわち、状態信号線アドレスAに
数値情報;34が発生している場合。
For example, the internal code at address A in FIG. 4(a) shows this case. That is, when the numerical information 34 is generated on the status signal line address A.

制御部602は、内部コード” 1 < 34 > ”
を作成する。内部コード″’L<34)”は、例えば。
The control unit 602 has an internal code “1 < 34 >”
Create. The internal code "'L<34)" is, for example.

自動化工場のワーク供給ラインの先頭にワークN034
のワークが発生したことを示している。
Work No. 034 at the beginning of the work supply line in the automated factory
This indicates that work has occurred.

次に、第4図(b)にt9いて、内部コード−出力信号
対応テーブル72は、制御部602の決定した制御指令
を表わす内部コードに基づいて、設備群603に指令信
号線605を介して制御信号を発信するための情報を格
納してt9<テーブルである。なお、制御指令を表わす
内部コードは、内部コード情報記憶609内に格納され
ている。
Next, at t9 in FIG. 4(b), the internal code-output signal correspondence table 72 outputs a signal to the equipment group 603 via the command signal line 605 based on the internal code representing the control command determined by the control unit 602. Information for transmitting control signals is stored and t9<table. Note that the internal code representing the control command is stored in the internal code information storage 609.

テーブル72は、制御指令を表わす内部コードを格納す
る数値コード・エリア、パラメータ部分エリア、および
その制御指令を発信すべき指令信号@ 605のエント
リ・アドレスを格納する指令信号線エントリ・エリアか
ら構成されている。制御部602は、決定した制御指令
を表わす内部コードと、このテーブル72に格納されて
いる内部コードとを比較し、−致した内部コードに対応
する指令信号、1ft605に対し信号を発生する。そ
の場合、このテーブル72に格納されている内部コード
において、パラメータ部分に変数(W、X。
The table 72 is composed of a numerical code area that stores an internal code representing a control command, a parameter partial area, and a command signal line entry area that stores the entry address of the command signal @ 605 to which the control command is to be transmitted. ing. The control unit 602 compares the internal code representing the determined control command with the internal code stored in the table 72, and generates a command signal corresponding to the matched internal code, 1ft605. In that case, in the internal code stored in this table 72, variables (W, X.

Y、Z等)が指定されてないときには、対応する信号線
アドレス上にオンオフの2値信号を出力する。2値信号
を出力する場合として、例えば第4図(b)のアドレス
■)がある。また、変数の指定がある場合には、決定さ
れた制御指令を表わす内部コードにおけるその変数に対
応するパラメータの値を、信号線アドレス上に出力する
。例えば、決定された制御指令を表オ)す内部コードが
″9< 1 ><34>< 1 >”であるときには、
信号線アドレス(:ヒに値34,1がこの順序で出力さ
れる。
Y, Z, etc.) is not specified, an on/off binary signal is output on the corresponding signal line address. An example of a case where a binary signal is output is address (2) in FIG. 4(b). Furthermore, if a variable is designated, the value of the parameter corresponding to the variable in the internal code representing the determined control command is output on the signal line address. For example, when the internal code representing the determined control command is "9<1><34><1>",
Values 34 and 1 are output to the signal line address (:hi) in this order.

内部コード゛’9<1><34><1>’″の意味は、
例えば、自動化工場の搬送台車1にワークNα34のワ
ークをステーション1に搬送することを指示する制御指
令である7 第5図は、第1図のI F −TIIENルール起動情
報記憶部607の詳S++説明図であり、第5図(、i
)はルール群起動条件テーブル、第5図(b)は使用ル
ール群番号格納エリアを示す。
The meaning of the internal code ``9<1><34><1>''' is
For example, it is a control command that instructs the transport vehicle 1 of an automated factory to transport the workpiece Nα34 to the station 1.7 FIG. This is an explanatory diagram, and FIG.
) shows the rule group activation condition table, and FIG. 5(b) shows the used rule group number storage area.

この記憶部607は、発生した設備群の状11Jに応じ
て起8!11すべきルール群を指定する情報を格納して
おく部分である。ここで、″起動すべき”とは、゛制御
部602が制御指令を決定する際に使用すべき′°とい
う意味である。例えば、自動化工場の制御において、ワ
ーク供給ラインの先頭にワークが発生した際には、ワー
クを作業ステーションに割付けるためのルール群を起動
し、台車への搬送指令、作業ステーションへの作業指令
を決定する。
This storage unit 607 is a part that stores information specifying a set of rules to be activated according to the state 11J of the equipment group that has occurred. Here, "to be activated" means "to be used when the control unit 602 determines a control command". For example, in the control of an automated factory, when a workpiece occurs at the beginning of a workpiece supply line, a set of rules for assigning the workpiece to a work station is activated, and a transfer command to a trolley and a work command to a work station are issued. decide.

また、ある作業ステーションで作業が完了した場合には
、製品を払出すためのルール群を起動し。
Additionally, when work is completed at a certain work station, a set of rules is activated to dispense the product.

台車への製作品払出し指令を決定する。ルール群8動条
件テーブル81は、前述のように、発生する設備群60
;3の各状態ごとに対応する起動すべきルール群を指定
するための情報を格納しておくテーブルである。このテ
ーブル81は、発生を監視すべき設備状態に対応する状
態信号線604のエントリ・アドレスを格納する状態信
チ線エンド・す・エリア、その信号Jj%604に信号
が発生した際に、起動すべきルール群の番号を指定する
起動ルール群番号エリアから構成される。使用ルール群
番号格納エリア82は、制御部6C)2が制御指令決定
に用いろべきルール群番号を記憶してオンくエリアであ
る。制御部602は、ルール群起動条件テーブル81の
データに基づき、各状態4i号線604をポーリングし
ており、信号が発生した場合、その信号t!A604に
対応する起Orルール群番号を、使用ルール群番号格納
エリア82に記憶し。
Determine the command to deliver the product to the trolley. As mentioned above, the rule group 8 dynamic condition table 81 includes the equipment group 60 that occurs.
; This is a table that stores information for specifying a rule group to be activated corresponding to each state of 3. This table 81 is a status signal line end area that stores the entry address of the status signal line 604 corresponding to the equipment status whose occurrence is to be monitored. It consists of an activation rule group number area that specifies the number of the rule group to be activated. The usage rule group number storage area 82 is an area that is turned on to store the rule group number that the control unit 6C) 2 should use to determine the control command. The control unit 602 polls each state 4i line 604 based on the data of the rule group activation condition table 81, and when a signal is generated, the signal t! The starting rule group number corresponding to A604 is stored in the used rule group number storage area 82.

次の処理に移る。Move on to the next process.

第6図は、第1図の11・” −丁111uNルール情
報記憶部608の詳細説明図であって、第6図(,1)
がルール群ディレクトリ、第6図(b)がルール・テー
ブルである。
FIG. 6 is a detailed explanatory diagram of the rule information storage unit 608 of FIG.
is the rule group directory, and FIG. 6(b) is the rule table.

この記憶部608は、制御論理を記述したTF−Tll
!iNルールに関する情報を格納しておく部分である。
This storage unit 608 stores TF-Tll in which control logic is written.
! This is a part that stores information regarding iN rules.

IP−TIIFNルールを内部コード化して扱われる。IP-TIIFN rules are internally coded and handled.

この記憶部608には内部コード化したT F −TI
IF:、Nルールを格納する。ルールは、ワークを作業
ステーションに割付けるためのルール群。
This storage unit 608 stores internally encoded T F -TI
IF:, Stores N rules. Rules are a group of rules for assigning workpieces to work stations.

製品を払出すためのルール群等、各ルール群ごとに区別
して格納する。
Each rule group, such as a rule group for dispensing products, is stored separately.

ルール群ディレクトリ91は、T F−TIIFNルー
ルが格納されているルール・テーブル92上の各ルール
群の先頭位置を指定するルール群先頭位置エリア、およ
び最終位置を指定するルール群最終位置エリアから構成
される。ルールは、各ルール群ごとに、この先頭位置か
ら最終位置までの間に格納される。各ルール群の番号は
、ルール群ディレクトリ91の行の番号と対応する。
The rule group directory 91 is composed of a rule group start position area that specifies the start position of each rule group on the rule table 92 in which the TF-TIIFN rules are stored, and a rule group final position area that specifies the final position. be done. Rules are stored for each rule group between the first position and the last position. The number of each rule group corresponds to the row number of the rule group directory 91.

ルール IF部、’rllEN部を区分してその内部コードをそ
れぞれT F部エリア、1’llEN部エリアに格納す
る。各エリアには、内部コードを複数〃1、格納できろ
。
The rule IF section and 'rllEN section are divided and their internal codes are stored in the TF section area and 1'llEN section area, respectively. Each area can store multiple internal codes.

TF部エリアは、内部コードの数値コードを格納する数
値コード・エリア、パラメータ部分を格納するパラメー
タ部分エリア、およびfl・部の条件1”ypsを格納
する条件1’ y p eエリアからなる。ここで、条
件Tyρ0は、11・’ gf(が1′f定の条件であ
るか、否定の条件であるかを区別するための情報であり
、条件’l’ y +)(!エリアに指定する。工1;
゛部が?’r定の条件のときはOを、11r定の条件の
ときは]をそれぞれ指定する。゛団EN部エリ/は、内
部コードの数値コードを格納する数(1^コー ド・エ
リア、パラメータ部分を格納rるパラメータ115分エ
リア、および、T F − 1’llENルールに指定
された手続名を格納する手続名工リアからなる。ここ′
C:2ルールr y 1Jeは、最終的に制御指令を決
定するためのルールと、その他のルールを区fi’lす
るための情報であり.ルールl’ypeエリアに指定す
る。最終的に制御指令を決定するルールは1,その池の
ルールは0をそれぞれ指定する。この情報は、制御部6
 0 2が制御指令の決定処理を行うに当たり,1’l
lEN部の結論(内部コード)を逐次下していく際に、
どの結論が最終的に得られる制御指令を表わすかを区別
するために用いろ。
The TF part area consists of a numeric code area that stores the numerical code of the internal code, a parameter part area that stores the parameter part, and a condition 1' y p e area that stores the condition 1'yps of the fl part. The condition Tyρ0 is information for distinguishing whether 11・' gf(is a 1'f constant condition or a negative condition, and the condition 'l' y +)(! Specified in the area .Eng 1;
゛ Department? Specify O for 'r-constant conditions and ] for 11r-constant conditions, respectively. The group EN section area contains the number (1^ code area) that stores the numerical code of the internal code, the parameter 115 minute area that stores the parameter part, and the procedure specified in the TF-1'llEN rule. Consists of a procedural virtuoso that stores the name.Here'
C:2 rule ry 1Je is information for distinguishing between a rule for ultimately determining a control command and other rules. Specify the rule l'ype area. The rule that ultimately determines the control command is designated as 1, and the rule in that pool is designated as 0. This information is stored in the control unit 6
0 2 performs control command determination processing, 1'l
When drawing the conclusions (internal code) of the lEN section one by one,
Use it to distinguish which conclusion represents the control command that will ultimately be obtained.

第7図は、第1図の内部コード情報記憶部609の詳細
説明図であって、第7図(a)は先頭ポインタ・テーブ
ルとパラメータ部分格納テーブルと継続ポインタ・テー
ブルを、第7図(b)は制御指令格納テーブルを、第7
図(C)は変数値−時格納テーブルを、第10図(d)
は条件濶足変数値格納テーブルをそれぞれ示している。
FIG. 7 is a detailed explanatory diagram of the internal code information storage unit 609 shown in FIG. 1, and FIG. b) is the control command storage table in the seventh
Figure (C) shows the variable value-time storage table, and Figure 10 (d) shows the variable value-time storage table.
1 and 2 respectively show conditional and variable value storage tables.

この記憶部609は、取り込んだ設備群の状態を表わす
内部コードとI +” −THr:Nルールに基づいて
制御指令を決定する際に,逐次下されるTII[’:N
部の結論(内部コード)および最終的に決定された制御
指令(内部コード)、さらに変数を含むIF−TILF
Nルールを処理する際に取り込む変数の値、等の情報を
記憶しておく部分である。パラメータ部分格納テーブル
101、先頭ポインタ・テーブル102、および継続ポ
インタ・テーブル103は、外部から取り込んだ設備群
の状態を表わす内部コードおよびT F−TIIENル
ールの処理において。
This storage unit 609 stores the internal code representing the state of the equipment group and the TII[':N
IF-TILF including the section conclusion (internal code) and the finally determined control command (internal code), as well as variables
This is a part that stores information such as the values of variables taken in when processing the N rule. The parameter partial storage table 101, the head pointer table 102, and the continuation pointer table 103 are used in processing internal codes and TF-TIIEN rules that represent the status of equipment groups imported from the outside.

逐次ドされろ結論(’rllEN部に指定されている内
部コードのうち最終的に決定された制御指令を除いたも
の)を、格納するためのワーク・テーブル群である。パ
ラメータ部分格納テーブル10〕は、それぞれの内部コ
ードのパラメータ部分を格納するテーブルである。継続
ポインタ・テーブル103は,同一数値コードを持つ内
部コードの各パラメータ部分を結合する継続ポインタを
格納するテーブルである。パラメータ部分格納テーブル
101の各行に対応する継続ポインタ・テーブル103
の各行には,継続する次の内部コードのパラメータ部分
が格納されているパラメータ部分格納テーブル101の
行の位置が格納されている。継続するパラメータ部分の
最後であることは、継続ポインタ・テーブル10:3に
ゼロを格納しておくことによって示される。また、先頭
ポインタ・テーブル】02は,先頭ポインタを格納する
テーブルである。先頭ポインタは,継続ポインタによっ
て結合された同一数値コードを持つ内部コードのバラメ
ータ部分の先頭を示す。先頭ポインタ・テーブル1.0
2の各行が、各数値コードに対応する。すなわち、数値
コード】が1行目、同2が2行L1、同3が3行目であ
る。パラメータ部分格納テーブル101に格納されてい
る同一数値コードを持つ一連のパラメータ部分の先頭行
の位置を、先頭ポインタ・テーブル102に格納する。
This is a group of work tables for storing the conclusions to be executed sequentially (the internal code specified in the 'rllEN section excluding the finally determined control command). Parameter portion storage table 10] is a table that stores parameter portions of each internal code. The continuation pointer table 103 is a table that stores continuation pointers that connect parameter parts of internal codes having the same numerical code. Continuation pointer table 103 corresponding to each row of parameter partial storage table 101
Each row stores the position of the row in the parameter part storage table 101 in which the parameter part of the next continuous internal code is stored. The end of the continuation parameter portion is indicated by storing zero in continuation pointer table 10:3. Also, the head pointer table 02 is a table that stores the head pointer. The start pointer indicates the beginning of the parameter part of the internal code that has the same numerical code connected by the continuation pointer. Start pointer table 1.0
Each row of 2 corresponds to each numerical code. That is, the numerical code [] is on the first line, the numerical code 2 is on the second line L1, and the numerical code 3 is on the third line. The position of the first row of a series of parameter parts having the same numerical code stored in the parameter part storage table 101 is stored in the start pointer table 102.

なお、パラメータ部分格納テーブル101の空エリアの
先頭行を空エリア先頭ポインタ・エリア104に格納し
、空エリアのすべてをポインタで結合し、そのポインタ
情報を継続ポインタ・テーブル10;3に格納し、空エ
リア位vlを管理する。第7図(b)に示す制御指全格
、納テーブル105は、制御部602によって最終的に
決定された制御指令を表わす内部コードを格納するテー
ブルである。このテーブル[05は、決定された制御指
令の内部コードの数値コードを格納する数値コード・エ
リア、パラメータ部分を格納するパラメータ部分エリア
からなる。また、第1O図(c)(d)の変数値−時格
納テーブルIQ61条件満足変数値格納テーブル1.0
7は、変数を持つI F −nipNミルNルールを行
うためのものである。変数値−時格納テーブル106は
、ルールのIF部に指定しである任意の1つの内部コー
ドと、ワーク・テーブル群(先頭ポインタ・テーブル1
02、パラメータ部分格納テーブル101.継続ポイン
タ・テーブル103)に格納されている内部コードの一
致判定を行った際に、ワーク・テーブル群に格納されて
いる内部コードで、ルールのI F’部に指定しである
内部コードと一致する内部コードのパラメータ部分のパ
ラメータ値を、ルールのIF部の内部コードのパラメー
タの部分の応答する変数の値として取り込んだものを格
納しておくテーブルである。
Note that the first row of the empty area of the parameter partial storage table 101 is stored in the empty area first pointer area 104, all empty areas are connected with a pointer, and the pointer information is stored in the continuation pointer table 10;3. Manage empty area position vl. The control command total storage table 105 shown in FIG. 7(b) is a table that stores internal codes representing control commands finally determined by the control unit 602. This table [05 includes a numerical code area for storing the numerical code of the internal code of the determined control command, and a parameter partial area for storing the parameter part. Also, the variable value-time storage table IQ61 condition satisfaction variable value storage table 1.0 in Figures 1O(c) and (d)
7 is for performing I F -nipN MilN rules with variables. The variable value-time storage table 106 stores any one internal code specified in the IF section of the rule, and a group of work tables (start pointer table 1).
02, parameter partial storage table 101. When a match is made for the internal code stored in the continuation pointer table 103), the internal code stored in the work table group matches the internal code specified in the IF' part of the rule. This is a table that stores parameter values of the parameter portion of the internal code of the rule, which are taken in as values of variables that respond to the parameter portion of the internal code of the IF section of the rule.

ワークテーブル群に格納されている内部コードで、ルー
ルのIF部に指定しである内部コードと一致するか否か
は、内部コードの数値コード31および変数指定のある
パラメータを除いたパラメータ部分で判定する。条件満
足変数格納テーブル107は、取り込んだ変数値のうち
IF部のAND条件あるいは、NOT条件を満足する変
数値を格納するテーブルである。
Whether or not the internal code stored in the work table group matches the internal code specified in the IF section of the rule is determined by the numerical code 31 of the internal code and the parameter part excluding parameters with variable specifications. do. The condition satisfaction variable storage table 107 is a table that stores variable values that satisfy the AND condition or NOT condition of the IF section among the imported variable values.

第8′図は、第1図の手続情報記憶部610の詳lAl
+説明図である。
FIG. 8' shows details of the procedure information storage unit 610 in FIG.
+It is an explanatory diagram.

この記憶部610は、I r・’−TI114’lルー
ルに指定した手続きの本体およびエン1へり・アト1ノ
スを格納しておく部分である。手続エントリ・テーブル
111は、各手続名を格納する手続名工リア、その手続
のエンi・す・アドレスを格納する手続、エントリ・エ
リアからなる6手続エントリ・テーブル】]1に指定し
・たエントリ・アドレス位置に各々の¥、続き112を
格納する。
This storage unit 610 is a part that stores the main body of the procedure specified in the I r·'-TI 114'l rule, and the en 1 edge and at 1 nos. The procedure entry table 111 is a 6-procedure entry table consisting of a procedure master area that stores each procedure name, a procedure area that stores the address of that procedure, and an entry area. - Store each \ and the continuation 112 in the address position.

第[」図は、第1図の制御部E; O’、’、の機能ブ
ロック(ジζ1である。
FIG. 1 is a functional block (diζ1) of the control unit E; O',' of FIG.

制御部602は、ルール群起動条件判定部12]、設合
;11状態内部コード発生部122、制御指令決定部1
23 、および制御指令発信部124から構成される。
The control unit 602 includes a rule group activation condition determination unit 12], a setting; 11 state internal code generation unit 122, and a control command determination unit 1.
23, and a control command transmitter 124.

情報の流れでは、1201が状13信号、1202がル
ール群番号、1203が設備状態内部コード、1204
が制御指令内部コード、1205が指令信号である。
In the information flow, 1201 is the state 13 signal, 1202 is the rule group number, 1203 is the equipment status internal code, and 1204
is a control command internal code, and 1205 is a command signal.

第10図は、制御部6o2の動作フローチャートである
。
FIG. 10 is an operation flowchart of the control section 6o2.

以下、第10図のフローにしたがって、第4図から第9
図までの構成を参照しながら、制御部602の動作を説
明する。
Below, according to the flow shown in Fig. 10, the steps from Fig. 4 to 9 will be explained.
The operation of the control unit 602 will be described with reference to the configuration up to the figures.

制御部602が動作を開始すると、先ずルール群起動条
件判定部121により状態信号線604のポーリングが
開始されろ。すなわち、ルール群起動条件判定部121
は、ルール群起豹J条件テーブル81に格納されている
状態信号線エントリの信号線を順次アクセスし、信号が
発生しているか否かを調べろ(ボックス131)。信号
が発生していなければサイクリックに順次信号a604
のアクセスを続ける。信号が発生していれば、ルール群
起動条件テーブル81において、その信号線604に対
応して指定される起動ルール群番号1202を使用ルー
ル群番号格納エリア82にセットし、設備状態内部コー
ド発生部[22を起動する(ボックス132)。設イイ
i?状態内部コード発生部122は、先ず先頭ポインタ
・テーブル102をゼロクリアし、空エリア先頭ポイン
タ・エリア104の値を“1″にセットする。すなわち
、ポインタを、パラメータ部分格納テーブル101の先
頭にセットする。さらに、パラメータ部分格納テーブル
のすべての行を第1行目からポインタで結合するように
継続ポインタ・テーブル103をセットする。すなわち
、ワーク・テーブル群(先頭ポインタ・テーブル102
、パラメータ部分格納テーブル101、継続ポインタ・
テーブル103)に、内部コード情報が何も格納されて
いない状態にする。次に、入力信号−内部コード対応テ
ーブル71に格納されている状態信号線エントリの信号
線を順にアクセスし、信号の発生している信号線に対し
て人力信号−内部コード対応テーブル71においてその
信号線に対応し指定されている内部コード(数値コード
とパラメータ部分)を発生させ(第1,4図説明参照)
、ワーク・テーブル群内に格納し、制御指令決定部12
3を起動する(ボックス133 )。ここで、発生させ
た内部コードのワーク・テーブル群内への格納は、次の
ように行う。先ず、発生させた内部コードの数値コード
に対応する先頭ポインタ・テーブル102の行のポイン
タからたどり始めて1発生させた内部コードのパラメー
タ部分と一致するものがパラメータ部分格納テーブル1
01に格納されているかを継続ポインタ・テーブル10
3のポインタをたどって調べろ。−致するものが既に存
在すれば、何もしない。存在しなければ、たどってきた
ポインタの最後が指す(継続ポインタがゼロになる前の
継続ポインタが指す)パラメータ部分格納テーブル10
]の行伝、空エリアの先頭の行に結合する。すなわち、
空エリア先頭ポインタ・エリア104の値を、その行に
対応するr−続ポインタ・テーブル10;3の行にセッ
トする。次に、空エリアの先頭の行に発すユさせた内部
コードのパラメータ部分を格納し、その行を最終の行と
する。つまり、その行に対応する継続ポインタ・テーブ
ル10:3の行にゼロをセットする。また、空エリア先
頭ポインタ・エリア10・1を、次の空エリアの行にセ
ットする。制御指令決定部123は、後述する手順で制
御指令を表わす内部コードを決定し、制御指令格納テー
ブル105に格納し、制御指令発信部】24を起動する
(ボックス]34)。なお、設備群の状態がI F−T
IIENルールで記述された制御論理の条件を満たして
いなければ、制御指令格納テーブル105には何も格納
されない。制御指令発信部124は、先ず、制御指令格
納テーブル105に制御指令内部コードが格納されてい
るか否かを調べろ。
When the control unit 602 starts operating, the rule group starting condition determining unit 121 first starts polling the status signal line 604. In other words, the rule group activation condition determination unit 121
Then, sequentially access the signal lines of the status signal line entries stored in the rule group origination condition table 81 and check whether a signal is generated or not (box 131). If no signal is generated, the signal a604 is generated cyclically and sequentially.
Continue to access. If a signal is generated, set the activation rule group number 1202 specified corresponding to the signal line 604 in the rule group activation condition table 81 in the usage rule group number storage area 82, and set the equipment status internal code generation unit. [Activate 22 (box 132). Is it okay to set it up? The state internal code generation unit 122 first clears the head pointer table 102 to zero and sets the value of the empty area head pointer area 104 to "1". That is, a pointer is set to the beginning of the parameter partial storage table 101. Further, the continuation pointer table 103 is set so that all rows of the parameter partial storage table are connected by pointers starting from the first row. That is, the work table group (start pointer table 102
, parameter partial storage table 101, continuation pointer
Table 103) is set to a state in which no internal code information is stored. Next, the signal lines of the status signal line entries stored in the input signal-internal code correspondence table 71 are accessed in order, and the signal line in which the signal is generated is entered in the human signal-internal code correspondence table 71. Generates the specified internal code (numeric code and parameter part) corresponding to the line (see explanation in Figures 1 and 4)
, stored in the work table group, and the control command determination unit 12
3 (box 133). Here, the generated internal code is stored in the work table group as follows. First, starting from the pointer in the row of the head pointer table 102 corresponding to the numerical code of the generated internal code, the one that matches the parameter part of the generated internal code is stored in the parameter storage table 1.
Continuation pointer table 10 stored in 01
Follow the pointer 3 and find out. - If the matching item already exists, do nothing. If it does not exist, the last pointer that has been followed points to it (points to the continuation pointer before the continuation pointer becomes zero) Parameter partial storage table 10
]'s biography, join it to the first line of the empty area. That is,
The value of the empty area head pointer area 104 is set in the row of the r-continuation pointer table 10;3 corresponding to that row. Next, the parameter part of the internal code to be issued is stored in the first line of the empty area, and that line is made the last line. That is, zero is set in the row of continuation pointer table 10:3 corresponding to that row. Also, the empty area head pointer area 10.1 is set to the next empty area line. The control command determining unit 123 determines an internal code representing the control command in a procedure described later, stores it in the control command storage table 105, and activates the control command transmitting unit 24 (box 34). Note that the status of the equipment group is I F-T.
If the control logic conditions described in the IIEN rules are not satisfied, nothing is stored in the control command storage table 105. The control command transmitter 124 first checks whether the control command internal code is stored in the control command storage table 105.

何も格納されていなければ、何もせずにルール群起動条
件判定部121を起動し、再びポーリングを再開する(
ボックス131)。制御指令内部コードが格納されてい
れば、その内部コードと内部コード−出力信号対応テー
ブル72に格納されている内部コードを比軸し、−致す
る行の対応する指令信号線エントリの信号線に対し信号
を発信する(第4図の説明参照)。制御指令格納テーブ
ル】05に格納されているすべての内部コードに対し、
−ヒ述の信号発信処理を行った後に、ルール群起動条件
判定部121を起動しくボックス135)、11トびポ
ーリングを開始する(ボックス131)。
If nothing is stored, the rule group activation condition determination unit 121 is activated without doing anything, and polling is restarted again (
box 131). If a control command internal code is stored, the internal code is compared with the internal code stored in the internal code-output signal correspondence table 72, and the signal line of the corresponding command signal line entry in the matching row is (See explanation in Fig. 4). Control command storage table] For all internal codes stored in 05,
- After performing the signal transmission process described above, the rule group activation condition determining unit 121 is activated (box 135), and polling is started (box 131).

第11図は、第9図の制御指令決定部123内部の機能
ブロックとテーブルの関係を示す図である。
FIG. 11 is a diagram showing the relationship between functional blocks and tables inside the control command determination unit 123 of FIG. 9.

第11図において、実線は制御の流れ、太線は情報の流
れを示す6制御摺合決定部123は、制御指令決定制御
部141、条件判定部142、A N D条件組合わせ
発生部L43.NOT条件満足変数値選択部中間結論書
き込み部]45、および制御指令書き込み部146から
なる。
In FIG. 11, the solid line indicates the flow of control, and the thick line indicates the flow of information. The six-control combination determination unit 123 includes a control command determination control unit 141, a condition determination unit 142, an A N D condition combination generation unit L43. It consists of a NOT condition satisfying variable value selection section, an intermediate conclusion writing section] 45, and a control command writing section 146.

第12図は、第11図の制御指令決定部123の動作フ
ローチャートである。
FIG. 12 is an operation flowchart of the control command determining unit 123 of FIG. 11.

制御指令決定部123が起動されると、先ず制御指令決
定制御部141に制御が渡される。
When the control command determination section 123 is activated, control is first passed to the control command determination control section 141 .

制御指令決定制御部141は、その他の機能ブロックを
用いて下記のように制御指令を決定する。
The control command determination control unit 141 determines a control command as described below using other functional blocks.

制御指令決定制御部141は、先ず、制御指令格納テー
ブル105をクリアしくボックス151)、使用ルール
群番号格納エリア82に格納されているルール群番号に
」ルづき、ルール群ディレクトリ91から使用するルー
ルのルール・テーブル92内先頭と最終位置を求める(
ボックス152)。
The control command determination control unit 141 first clears the control command storage table 105 (box 151) and selects the rule to be used from the rule group directory 91 based on the rule group number stored in the rule group number storage area 82. Find the first and last position in the rule table 92 of (
box 152).

以下の処理は、この先頭と最終位置の間のルールだけに
ついて行う。
The following processing is performed only for the rules between this first and final position.

制御指令決定制御部]41け、Tl114N部の内部コ
ードをワーク・テーブル群内に追加する新たなルールが
もはやなくなるまで、ルール・テーブル92内のルール
typeOのすべてのルールに対して、それぞれ以下の
処理を繰り返す(ボックス15+4)。
[Control Command Determination Control Section] 41, add the internal code of the Tl114N section to the work table group. For all rules of rule type O in the rule table 92, perform the following, respectively. Repeat the process (box 15+4).

なくなった場合、さらにルール・テーブル92内のルー
ルType】のすべてのルールに対しそれぞれ以下の処
理を繰り返した(ボックス151!’i)後、制御指令
発信部124を起動する制御指令決定制御部141は、
ある1つのルールを取り出し、そのルールのIF部に指
定しである内部コード1つ1つについて処理を行う。先
ず、条件判定部142をコールし、あるルールのIF部
の内部コードの1つと、ワーク・テーブル群内に格納さ
れている内部コードとの比較判定を行−5(ボックス1
5;()。
If there are no more rules, the control command determination control section 141 activates the control command transmission section 124 after repeating the following process for all rules of rule type in the rule table 92 (box 151!'i). teeth,
A certain rule is taken out and each internal code specified in the IF section of that rule is processed one by one. First, the condition judgment unit 142 is called and a comparison judgment is made between one of the internal codes of the IF section of a certain rule and the internal code stored in the work table group at line-5 (box 1).
5;().

条件判定部142は、ルールテーブル92の条件Typ
eエリアに指定されている条件Typeにより、以下に
示すように、条件判定処理を切り変えて行う。
The condition determination unit 142 determines the condition type of the rule table 92.
Depending on the condition type specified in the e area, the condition determination process is changed as shown below.

条件’rypcがOの場合、条件判定部142は、T 
F部の内部コードの数値に対応する先頭ポインタ・テー
ブル102の行のポインタからたどり始め、順次継続ポ
インタ・テーブル103のポインタをたどり、継続ポイ
ンタ値がゼロになるまでTF部の内部コードのパラメー
タ部分と一致するものがパラメータ部分格納テーブル1
0]に格納されているか否かを調べる。−致判定は、I
F部の内部コードのパラメータ部分の変数指定のパラメ
ータを除いた部分で行い、−致した場合、変数指定のあ
るパラメータ部に対応するパラメータ部分格納テーブル
Lot内パラメータ部分のパラメータ部の値を、IF部
に指定しである変数の値として変数値−時格納テーブル
106に格納する。この場合、パラメータ部分格納テー
ブル101内にIF部の内部コードのパラメータ部分と
一致するものが見つかる度に変数値を取り込み、変数値
−時格納テーブル106の各行に順に格納していく。な
お、TF部の内部コードのパラメータ部分のパラメータ
部に変数指定がない場合は、特に変数値は取り込まない
。以上の結果、−1ttするものが1つでもあった場合
条件成立、1つもなかった場合は条件不成立とする。
When the condition 'rypc is O, the condition determination unit 142 determines that T
Starting from the pointer in the row of the first pointer table 102 that corresponds to the numerical value of the internal code of the F section, the pointer of the continuation pointer table 103 is sequentially traced until the continuation pointer value becomes zero. The one that matches is the parameter partial storage table 1
0]. - The match is I
This is performed on the part of the internal code of the F part excluding the parameter specified by the variable, and if it matches, the value of the parameter part of the parameter part in the parameter part storage table Lot corresponding to the parameter part with the variable specification is The value of the specified variable is stored in the variable value-time storage table 106. In this case, each time a parameter part matching the parameter part of the internal code of the IF section is found in the parameter part storage table 101, the variable value is fetched and stored in each row of the variable value-time storage table 106 in order. Note that if there is no variable specification in the parameter section of the parameter section of the internal code of the TF section, no particular variable value is taken in. As a result of the above, if there is at least one item that is -1tt, the condition is satisfied, and if there is none, the condition is not satisfied.

条件T芹eが1の場合、条件判定部142は、条件1’
 y p eがOの」4)合と同様に、TF部の内部コ
ードの数値に対応オろ先頭ポインタ・テーブル[02の
行のポインタからたどり始め、類次継た。tポインタ・
テーブル103のポインタをたどり、継続ポインタ値が
ゼロになるまでIF部の内部コードのパラメータ部分と
一致するものがパラメータ部分格納テーブル+01に格
納されているか否かを調べる。−致判定は、I ?’部
の内部コードのパラメータ部分の変数指定のパラメータ
を除いた部分で行い、−致した場合、変数指定のあるパ
ラメータ部に対応するパラメータ部分格納テーブル10
1内パラメータ部の値を、T[パ部に指定しである変数
の値として変数値−時格納テーブル106に格納する。
When the condition Tserie is 1, the condition determination unit 142 determines that the condition 1'
Similarly to case 4) when ype is O, tracing starts from the pointer in row 02 of the top pointer table corresponding to the numerical value of the internal code of the TF section, and the process continues one after the other. t pointer
The pointer in the table 103 is followed until the continuation pointer value becomes zero, and it is checked whether a parameter part that matches the parameter part of the internal code of the IF section is stored in the parameter part storage table +01. -Is the result I? ' Excluding the parameter specified by the variable in the parameter part of the internal code of the section. If -, the parameter part storage table 10 corresponds to the parameter part with the variable specified.
The value of the internal parameter section 1 is stored in the variable value-time storage table 106 as the value of the variable specified in the T[para section.

この場合、パラメータ部分格納テーブル]0】内にIF
部の内部コードのパラメータ部分と一致するものが見つ
かる度に変数値を取り込み、変数値−時格納テーブル1
06の各行に順に格納していく。なお、IF部の内部コ
ードのパラメータ部分のパラメータ部に変数指定がない
場合は、特に変数値は取り込まれない。以−ヒの結果、
パラメータ部分に変数指定がない場合は、条件Type
 Qのときとは逆に、−致するものがないときに条件成
立とし、−致するものがあるときは、条件不成立とする
。また、パラメータ部分に変数指定がある場合は、−致
、不一致にかかわらず一担条件成女として制御指令決定
制御部141に戻る(他のType OのN O′I’
の無い条件と本Type 、1. (/’) N O′
I’の付いた条件とを組み合せIF部全全体しての条件
をh21足する変数値を生成する処理は後で述べるよう
にNOT条件満足変数値選択部147が行う)。
In this case, the IF in the parameter partial storage table ]0]
Every time a variable value is found that matches the parameter part of the internal code of the section, the variable value is fetched and stored in the variable value-time storage table 1.
06 in order. Note that if there is no variable specification in the parameter section of the parameter section of the internal code of the IF section, no particular variable value is taken in. As a result,
If there is no variable specified in the parameter part, the condition type
Contrary to the case of Q, the condition is determined to be satisfied when there is no - match, and the condition is determined to be unsatisfied when there is a - match. In addition, if a variable is specified in the parameter part, the process returns to the control command determination control unit 141 as a one-way condition, regardless of whether it matches or does not match (N O'I' of other Type O
Conditions without this Type, 1. (/') N O'
The process of generating a variable value that combines the conditions with I' and adds h21 to the conditions of the entire IF section is performed by the NOT condition satisfying variable value selection section 147, as will be described later).

以上の結果、条件不成立となった場合、制御指令決定制
御部141は、次のルールを取り出し再び条件判定を始
める(ボックス]54)。条件成立で、いま条件判定を
行ったIF部が条件Type 0でかつ内部コードのパ
ラメータ部分に変数指定があれば、AND条件組合せ発
生部143をコールしくボックス155)、後述の手順
によりI P部のANr)条件を満足する変数値の組合
せを生成する(ボックス156)、組合せ結果は1条件
満足変数値格納テーブル107に格納される。また、い
ま条件判定を行ったTF部が条件Typeiでかつパラ
メータ部分に変数指定があった場合は。
As a result of the above, if the condition is not satisfied, the control command determination control section 141 takes out the next rule and starts determining the condition again (box] 54). If the condition is satisfied and the IF section that just made the condition judgment is condition Type 0 and there is a variable specification in the parameter section of the internal code, the AND condition combination generation section 143 is called (box 155), and the IP section is executed according to the procedure described below. ANr) Generate a combination of variable values that satisfy the condition (box 156), and the combination result is stored in the 1-condition satisfaction variable value storage table 107. Also, if the TF section that has just performed the condition judgment is condition Typei and there is a variable specification in the parameter section.

NOT条件変数値選択部147をコールしくボックス1
516) 、後述の手順により、IF部のNOT条件を
満足する変数値を選択する(ボックス1517)。
Box 1 to call NOT condition variable value selection section 147
516) Select a variable value that satisfies the NOT condition of the IF section according to the procedure described below (box 1517).

選択結果は、AND条件を満足する変数値の組合せ結果
と同様に、条件hカ足変数値格納テーブル107に格納
される。
The selection result is stored in the condition h variable value storage table 107 in the same way as the result of the combination of variable values that satisfy the AND condition.

上記A N ])条件組合せ発生部】43、あるいは。Above A N ]) Condition combination generation unit】43, or.

NOT条件条件満足変数値選択部子47−ルした結果、
条件を満足する変数値が存在しないときには、制御指令
決定制御部141は、いま処理しているルールを放棄し
、次のルールを取り出し、再び条件判定を始める(ボッ
クス157)、なお、いま条件判定を行った■ト′部の
内部コードのパラメータ部分に変数指定のあるパラメー
タ部がなければ、以上の処理は行わない(ボックス15
4゜156)。制御指令決定制御部141は、ここまで
の処理にあろルールのIF部に指定しであるすべての内
部コードに対して行った後、次の処理に移る(ボックス
15J1)。先ず、制御指令決定制御部141は、いま
処理しているルールの1’1lEN部の」つの内部コー
ドを取り出す。ルール・テーブル92において、その内
部コードに対し手続名が指定しである場合、制御指令決
定制御部141は、手続起!l1IJ部144をコール
して指定手続を起動する(ボックス1510)。手続名
が指定してない場合には、手続起動部144はコールさ
れない(ボックス159)。手続起動部144は、内部
コードに対し指定してあった手続名の手続きのエントリ
・アドレスを手続エントリ・テーブル111から探し出
し、そのアドレスの手続きを条件満足変数値格納テーブ
ル107を引数として=1−ルする。
As a result of NOT condition satisfaction variable value selection section 47-
When there is no variable value that satisfies the condition, the control command determination control unit 141 abandons the rule currently being processed, takes out the next rule, and starts condition determination again (box 157). If there is no parameter section with a variable specification in the parameter section of the internal code of the
4°156). The control command determination control unit 141 performs the processing up to this point for all internal codes specified in the IF section of the rule, and then moves on to the next processing (box 15J1). First, the control command determination control unit 141 extracts the internal code of the 1'11EN part of the rule currently being processed. If the procedure name is specified for the internal code in the rule table 92, the control command determination control unit 141 selects the procedure start! The specified procedure is started by calling the l1IJ unit 144 (box 1510). If no procedure name is specified, the procedure initiator 144 is not called (box 159). The procedure starting unit 144 searches the procedure entry table 111 for the entry address of the procedure with the procedure name specified for the internal code, and executes the procedure at that address using the condition satisfaction variable value storage table 107 as an argument =1- file.

手続き内では1条PP;12足変数値格納テーブル10
7の値を任意に変更することができる。次に、制御指令
決定制御部[41は、いま処理しているルールのTyp
e (ルール・テーブル92内ルールType)を調べ
、Typeが0の場合、中間績、!0書き込み部】45
をコールし、いま処理しているルールの団[(N部の取
り出した1つの内部コードをワーク・テーブル群内に格
納する(ボックス+511)。Typeが1の場合5制
御指令書き込み部146をコールし、いま処理している
ルールのTH14N部の取り出した1つの内部コード制
御指令格納テーブル105に格納する(ボックス15]
2)。制御指令決定制御部141は、ここまでの処理を
TIIEN部に指定しであるすべての内部コードについ
て繰り返す(ボックス+513)。中間結論書き迷み部
145は、先ず格納しようとする内部コードにおいてパ
ラメータ部分に変数指定のあるパラメータ部があった場
合、そのパラメータ部の内容を条件満足変数値格納テー
ブル1.07に格納されているある行の対応する変数値
と置き換えた内部コードを生成する。変数指定のあるパ
ラメータ部がない場合は、格納しようとする内部コード
をそのまま用いろ。次に、中間結論書き込み部L 45
は、生成した内部コードをワーク・テーブル群に格納す
る。この格納の方法は、前述の設備状態内部コード発生
部122が、発生させた内部コードをワーク・テーブル
群内に格納する場合と同じ方法で行う。この場合、前述
の方法と同じように、格納しようとする内部コードが、
すでにワーク・テーブル群内に格納されているときには
、その内部コードを新たに格納することはしない。なお
、以−Fの処理は、条件満足変数値格納テーブル]07
の変数値が格納されているすべての行について繰り返す
。制御指令書き込み部146は、中間結論書き込み部】
45と同じように、先ず書き込むべき内部コードを生成
する。
In the procedure, Article 1 PP; 12-leg variable value storage table 10
The value of 7 can be changed arbitrarily. Next, the control command determination control unit [41 is the type of rule currently being processed.
Check e (Rule Type in rule table 92), and if Type is 0, intermediate score,! 0 writing part】45
Calls the group of rules currently being processed [(One internal code extracted from the N section is stored in the work table group (box +511). If Type is 1, calls the 5 control command writing section 146. Then, it is stored in one internal code control command storage table 105 extracted from the TH14N part of the rule currently being processed (box 15).
2). The control command determination control section 141 repeats the processing up to this point for all internal codes designated as the TIIEN section (box +513). First, if there is a parameter section with a variable specification in the internal code to be stored, the intermediate conclusion writing error section 145 stores the contents of the parameter section in the condition satisfaction variable value storage table 1.07. Generates internal code that replaces the corresponding variable value in a certain line. If there is no parameter section with variable specifications, use the internal code to be stored as is. Next, intermediate conclusion writing section L 45
stores the generated internal code in a group of work tables. This storage method is the same as when the above-mentioned equipment status internal code generating section 122 stores the generated internal code in the work table group. In this case, similar to the method described above, the internal code you are trying to store is
If the internal code is already stored in the work table group, the internal code will not be newly stored. Note that the following process is performed using the condition satisfaction variable value storage table]07
Iterate through all rows containing variable values. The control command writing unit 146 is an intermediate conclusion writing unit]
45, first generate the internal code to be written.

次に、その内部コードを制御指令格納テーブル105の
先頭から順に格納していく。この場合、格納しようとす
る内部コードがすでに制御指令格納テーブル105内に
存在すれば、その内部コードは新たに書き込まない。ま
た、中間結論書き込み部145と同じように、条件満足
変数値格納テ−プル107の変数値が格納されているす
べての行について、以上の処理を繰り返す。
Next, the internal codes are stored in order from the beginning of the control command storage table 105. In this case, if the internal code to be stored already exists in the control command storage table 105, that internal code is not newly written. Also, like the intermediate conclusion writing section 145, the above process is repeated for all rows in which variable values are stored in the condition satisfying variable value storage table 107.

第13図及び、第14図は、第11図のA N I)条
件組合わせ発生部14:3の動作フローチャートである
。
13 and 14 are operation flowcharts of the ANI) condition combination generation unit 14:3 of FIG. 11.

A N D条件組合わせ発生部143は、IF部のある
1つの内部コードとワーク・テーブル群に格納されてい
る内部コードとの条件判定を新たに行った際に取り込ん
だ変数の値の組合わせ(変数値−時格納テーブル106
に格納されている)と、それまでに条件判定をすませた
I F部の内部コードにおいてA N I)条件あるい
は、N OT条件を満足している変数の値の組合わせ(
条件満足変数値格納テーブル107に格納されている)
とを組合わせ、新たに、条件判定を行った内部コードも
含めてANT)条件を満足する変数の値の組合わせを作
成する(再び1条件満足変数値格納テーブル107に格
納する)。すなわち、第1:3図に示すように、変数値
−時格納テーブル106の各行とAND条件満足変数値
格納テーブル107の各行のすべでの組合わせに対し、
ANr)条件を満足するか否かを判定しくボックス16
]) 、満足すれば新たにAN+”)条件をh2i足す
る変数値の組合わせを生成し、記憶しておく(ボックス
162)。最後に、記憶しておいた新しい変数値の組合
わせを再び条件満足変数値格納テーブル107に格納す
る(ボックス163 )。ここで、A N T、)条件
を満足する場合というのは、変数値−時格納テーブル1
06側と条件満足変数値格納テーブル107側で、同じ
変数名の変数において値が一致するか、または−方の変
数が値を持たない(つまり、ブランクが人ってくる)場
合である。また、新たなANI’)条件も満足する変数
値の組合わせは、変数値−時格納テーブル1.06の行
と、条件満足変数値格納テーブル107の行で、AND
条件を満足する1組の組合わせにおいて、変数値の一致
する変数はその一致する値に、また−方がブランクの変
数は値を持つ方の変数の値に直すことによって生成する
。
The A N D condition combination generation unit 143 generates a combination of variable values taken in when a new condition judgment is made between one internal code in the IF section and the internal code stored in the work table group. (Variable value-time storage table 106
The combination of the values of variables that satisfy the A N I) condition or the NOT condition in the internal code of the IF section that has completed the condition judgment so far (
(stored in the condition satisfaction variable value storage table 107)
A new combination of variable values that satisfies the ANT) conditions, including the internal code that performed the condition determination, is created (stored again in the 1-condition satisfaction variable value storage table 107). That is, as shown in Figure 1:3, for all combinations of each row of the variable value-time storage table 106 and each row of the AND condition satisfaction variable value storage table 107,
ANr) Check whether the condition is satisfied or not. Box 16
]), if satisfied, generates a new combination of variable values that adds h2i to the AN+”) condition and stores it (box 162).Finally, the new combination of variable values that has been memorized is generated again. It is stored in the condition satisfaction variable value storage table 107 (box 163).Here, when the condition ANT,) is satisfied, the variable value-time storage table 1
This is a case where the values of variables with the same variable name match on the 06 side and the condition satisfying variable value storage table 107 side, or the variable on the - side has no value (that is, a blank appears). In addition, the combination of variable values that also satisfy the new ANI') condition is the combination of AND
In a set of combinations that satisfy the conditions, variables with matching variable values are generated by changing them to the matching values, and variables whose negative side is blank are changed to the value of the variable that has a value.

第17図は、A N D条件満足変数値組合わせの生成
例を示す図であって、第17図(Q)は変数値−時格納
テーブル、第L7図(b)と(Q)は条件満足変数値格
納テーブルである。
FIG. 17 is a diagram showing an example of generating a variable value combination satisfying the A N D condition, in which FIG. 17 (Q) is a variable value-time storage table, and FIG. 17 (b) and (Q) are the conditions This is a satisfaction variable value storage table.

この例では、変数値−時格納テーブルの1行目の変数値
(W=a、X=ニブランクY=b、7.=ブランク)と
1条件満足変数値格納テーブルの1行目の変数値(W=
ニブランク X= Q + ’! = b tZ=ブラ
ンク)はANr)条件を満足し、新たにA N +)条
件を満足する変数値の組合わせW = Fl gX=b
、Y=b、Z=ニブランク、条件満足変数値格納テーブ
ルの1行目に生成されている。
In this example, the variable value in the first row of the variable value-hour storage table (W=a, W=
Ni blank X=Q+'! = b tZ=blank) satisfies the ANr) condition, and a new combination of variable values that satisfies the A N +) condition W = Fl gX=b
, Y=b, Z=ni blank, which is generated in the first row of the condition satisfaction variable value storage table.

第15図は、第11図のN OT条件満足変数値選択部
147の処理内容を示す図である。
FIG. 15 is a diagram showing the processing contents of the NOT condition satisfying variable value selection unit 147 of FIG. 11.

第15図において608.f;09は、それぞれ第;3
図のT F−TIIr4Nルール情報記憶部、内部コー
ド情報記憶部で、106,107はそれぞれ第11図の
変数値−時格納テーブル106側足変数値格納テーブル
である。なお、1.50はIF−T II E Nルー
ル情報記憶部に格納されているルールの例で、151は
内部コート情報記憶に格納されている設備群の状態及び
、 TIIEN部の結論を表わす情報であり、ここでは
、分り易くするために、それぞれ文字列で表現しておく
(実際には、既に説明したように、内部コード、パラメ
ータ部分等に分離され格納されている)。
In FIG. 15, 608. f;09 is the third;
In the T F-TIIr4N rule information storage section and internal code information storage section in the figure, 106 and 107 are side leg variable value storage tables of the variable value-time storage table 106 in FIG. 11, respectively. Note that 1.50 is an example of a rule stored in the IF-T II E N rule information storage section, and 151 is information representing the status of the equipment group and the conclusion of the TIIEN section stored in the internal court information storage section. Here, in order to make it easier to understand, each is expressed as a character string (actually, as already explained, they are separated and stored in internal code, parameter parts, etc.).

NOT条件満足変数値選択部147は、他のType 
OのNOTの無い条件と、Type 1のNOTの付い
た条件とを組み合せfF部全全体しての条件を満足する
変数値を生成する処理を行う。この処理をルール150
を用い説明する。NOT条件満足変数値選択部147は
、最初の条件“IF(ステーション<×〉は<Y>作業
可能)″で取り込んだ、各ステーションの処理可能な作
業の内から、2番[1の条件” r F  NOT’ 
(ステーション〈×〉は作業中)″で取り込んだ作業中
のステーションを取り除き、ステーションが作業中でな
いので処理可能となる作業を選び出す処理を行う。すな
わち、NO”[’頭件満足変数値選択部147は、条件
満足変数値格納テーブル107に格納されているステー
ションで処理可能な作業という条件を満足する変段値と
変数値−時格納テーブル106に格納されている作業中
のステーションという条件を満足する変数値の間で同じ
変数名の変数すなわち、ステーションにおいて値が−致
するものを。
The NOT condition satisfaction variable value selection unit 147 selects other Type
Processing is performed to generate a variable value that satisfies the condition for the entire fF section by combining the condition without NOT of O and the condition with NOT of Type 1. Rule 150
Explain using. The NOT condition satisfaction variable value selection unit 147 selects the second condition [condition 1] from among the work that can be processed at each station, which has been imported under the first condition "IF (station <x> can work <Y>)". r F NOT'
(Station〈x〉is currently working)'' is removed, and the station is not currently working, so the process that selects the work that can be processed is performed.In other words, NO'' 147 is a step value that satisfies the condition that the work can be processed at the station stored in the condition satisfying variable value storage table 107 and a variable value that satisfies the condition that the station in progress is stored in the variable value-time storage table 106. Variables with the same variable name, that is, those whose values match at the station.

条件満足変数値格納テーブルJ07から取り除き残った
作業中でないステーションで処理可能も作業という条件
を満足する変数値を再び1条件源足変数値格納テーブル
1071−格納オろ。
The variable values that satisfy the condition that the remaining stations that are processable and work are removed from the condition-satisfying variable value storage table J07 are stored again in the 1-condition source variable value storage table 1071.

以上説明したN C) ’I’条件濶足変数値選択部1
47の動作フローチャートを第16図に示す。
N C) 'I' condition variable value selection section 1 explained above
The operation flowchart of No. 47 is shown in FIG.

N OT条件潤足変数値選択部147は1条件源足変数
111’[格納テーブル]07から変数値を1つ取り出
り、 (ボックスIF;、1)、その変数値と変数値−
時格納テーブル1.06に格納されている各変数値との
間で、同じ変数名の変数において値が−致するか否かを
判定する(ボックス162,163)。
The NOT conditional variable value selection unit 147 takes out one variable value from the 1-condition source variable 111' [storage table] 07, (box IF;, 1), and selects the variable value and the variable value -
It is determined whether or not the values of variables with the same variable name match each variable value stored in the time storage table 1.06 (boxes 162 and 163).

−致した場合は、条件%’tI足変数値格納テーブル1
07から次の変数値を取り出し、上記判定を繰り返す(
ボックスIFE4)、条件満足変数値格納テーブル10
7から取り出した変数値が、変数値−時格納テーブル1
’06のどの変数値とも同じ変数名の変数において値が
−致しなければ(ボックス1.65)、その変数値を一
時記憶しておく(ボックス166)、上記処理を条件満
足変数値格納テーブル107のすべての変数1直に対し
て行い(ボックス167)、最後に一時記憶しておいた
変数値を再び条件満足変数値格納テーブル107に格納
する(ボックス168)。
- If it matches, the condition %'tI bar variable value storage table 1
Take out the next variable value from 07 and repeat the above judgment (
Box IFE4), condition satisfaction variable value storage table 10
The variable value extracted from 7 is the variable value-time storage table 1.
If the value of a variable with the same variable name as '06 does not match (Box 1.65), the variable value is temporarily stored (Box 166), and the above process is carried out in the condition-satisfying variable value storage table 107. (Box 167), and finally, the temporarily stored variable values are stored again in the condition satisfying variable value storage table 107 (Box 168).

第15図の例では1条件源足変数値格納テーブル107
の2行目及び、:3行目に格納されている変数値が共通
の変数Xにおいて、変数値−時格納テーブル106のど
の変数値とも同じ値とならないので残されて、再び条件
満足変数値格納テーブル10′7に格納させている。
In the example of FIG. 15, one condition source foot variable value storage table 107
The variable values stored in the second and third rows of the common variable It is stored in the storage table 10'7.

このように本実施例では、IF部の条件を否定的に扱う
処理ができ、内部コード情報記憶部609に格納する情
報jKを大幅に削減できる。これにより、従来に比へ制
御応答速度が向1−シ、高速応答を要求されろ制御対象
の制御に対してもルールに基づく条件判別制御を適用す
ることが可能となる。
In this way, in this embodiment, the condition of the IF section can be handled negatively, and the amount of information jK stored in the internal code information storage section 609 can be significantly reduced. This makes it possible to apply rule-based condition discrimination control even to the control of a controlled object that requires a high-speed response, whereas the control response speed is far below that of the conventional method.

〔発明の効果3 以上説明したように、本発明では、I F部の文字列と
状態記憶部の文字列が−致しなかった場合条件成立とす
る文字列を否定的に扱う条件判定処理を行うことができ
る。これにより「あろ設備は空でない」といった否定の
内容を条件“T I?N0T(設備は空)″と記述でき
″(設備は空でない)″という余分な文字列を必要とし
ない、従って上記否定の内容を条件に多数用いたルール
の場合、状態記憶部に格納する文字列を大幅に削減し、
従来に比べ高速に制御指定の決定を行うことができる。
[Effect of the Invention 3 As explained above, in the present invention, if the character string in the IF part and the character string in the state storage part do not match, the condition determination process is performed in which the condition is met and the character string is treated negatively. be able to. As a result, the content of the negation such as "Aro equipment is not empty" can be written as the condition "T I?N0T (equipment is empty)", and the extra character string "(equipment is not empty)" is not required. Therefore, the above negation In the case of a rule that uses a large number of conditions, the number of strings stored in the state memory can be significantly reduced.
Control designation can be determined faster than before.

従って高速性が要求される制御対象の条件判別制御に対
しても、専門のプログラム開発要員が不要となり、制御
技術者みずからTF” −THI?Nルールにより制御
方式を記述し、所望の条件判別制御を容易にできる。
Therefore, for condition discrimination control of controlled objects that require high speed, there is no need for specialized program development personnel, and control engineers can write control methods by themselves using TF''-THI?N rules and perform desired condition discrimination control. can be easily done.

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

第1図は本発明の実施例を示す設備群制御装置のブロッ
ク構成図、第2図は条件識別子を用いたルールの記述例
を示す図、第:3図は従来の設備群制御方式の機能拾成
図、第4図は人出力信号−内部コード対応情報記憶部の
詳細図、第5図はI +”−TIII:Nルール起動情
報記憶部の詳細図、第6図はT F−TIIHNルール
情報記憶部の詳細図、第7図は内部コード情報記憶部の
詳細図、第8図は手続情報記憶部の詳細図、第9J図は
制御部の機能ブロック図、第10図は制御部の動作フロ
ーチャート。 第11図は制御指令決定部の機能ブロックと各テーブル
の関係を示す図、第12図は制御指令決定部の動作フロ
ーチャート、第13図はANI)条件組合わせ発生部の
動作フローチャート、第14図はA N I)条件組合
わせ発生部において生成されろANr)条件を満足する
変数値の組合わせ生成例、第15図はN O’r条件満
足変数(jn選択部の処理内容を示す図、第16図はN
OT条件満足変数値の動作フローチャートである。
Fig. 1 is a block configuration diagram of an equipment group control device showing an embodiment of the present invention, Fig. 2 is a diagram showing an example of writing rules using condition identifiers, and Fig. 3 is a function of a conventional equipment group control method. Figure 4 is a detailed diagram of the human output signal-internal code correspondence information storage unit, Figure 5 is a detailed diagram of the I+”-TIII:N rule activation information storage unit, and Figure 6 is a detailed diagram of the T F-TIIHN A detailed diagram of the rule information storage section, FIG. 7 is a detailed diagram of the internal code information storage section, FIG. 8 is a detailed diagram of the procedure information storage section, FIG. 9J is a functional block diagram of the control section, and FIG. 10 is a detailed diagram of the control section. 11 is a diagram showing the relationship between the functional blocks of the control command determining section and each table, FIG. 12 is an operational flowchart of the control command determining section, and FIG. 13 is an operational flowchart of the ANI) condition combination generating section. , Fig. 14 shows an example of the generation of combinations of variable values that satisfy the A N I) condition combination generation unit and the process content of the Jn selection unit. Figure 16 shows N
It is an operation flowchart of OT condition satisfaction variable value.

Claims (1)

【特許請求の範囲】[Claims] 1、設備群の条件と結論からなるルールを格納するルー
ル記憶部、設備群の状態とルールで結論された内容を格
納する状態記憶部、該状態記憶部に格納された情報と上
記ルール記憶部に格納された条件とを比較照合し、条件
が満足されたルールの結論を上記状態記憶部に格納する
ルール運用部を有し、設備群に対する制御指令を決定す
るルール処理方式において、ルールの条件に記述された
設備群の状態が該状態記憶部に存在しなかつた場合条件
成立として処理することを特徴とするルール処理方式。
1. A rule storage unit that stores rules consisting of conditions and conclusions for equipment groups; a status storage unit that stores the status of the equipment group and contents concluded by the rules; and information stored in the status storage unit and the rule storage unit. In a rule processing method that determines a control command for a group of equipment, the rule processing method includes a rule operation unit that compares and matches the conditions stored in A rule processing method characterized in that if the state of the equipment group described in the above does not exist in the state storage section, processing is performed as a condition is satisfied.
JP61143082A 1986-06-20 1986-06-20 Rule processing method Pending JPS63631A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61143082A JPS63631A (en) 1986-06-20 1986-06-20 Rule processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61143082A JPS63631A (en) 1986-06-20 1986-06-20 Rule processing method

Publications (1)

Publication Number Publication Date
JPS63631A true JPS63631A (en) 1988-01-05

Family

ID=15330493

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61143082A Pending JPS63631A (en) 1986-06-20 1986-06-20 Rule processing method

Country Status (1)

Country Link
JP (1) JPS63631A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0262632A (en) * 1988-08-29 1990-03-02 Nec Corp High-speed processing system for rule including negated conditional clause

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0262632A (en) * 1988-08-29 1990-03-02 Nec Corp High-speed processing system for rule including negated conditional clause

Similar Documents

Publication Publication Date Title
US4628435A (en) Facilities control method
US4628434A (en) Facilities control method
Bullers et al. Artificial intelligence in manufacturing planning and control
Wang et al. Intelligent reasoning for process planning
KR940001563B1 (en) Rule base system
Pande et al. An expert system for automatic extraction of machining features and tooling selection for automats
Mohammadian et al. Generating fuzzy rules by genetic algorithms
Gupta et al. Expert systems and their applications in production and operations management
ES2128087T3 (en) PROCEDURE FOR THE DESIGN OF A REGULATOR-FUZZY.
JPS61168068A (en) Rule processing system
JP2701442B2 (en) Expert system with knowledge base by fuzzy expression
JP2838991B2 (en) Process procedure check system
JPS6320557A (en) Rule processing method
JPS61136162A (en) Equipment group control method
JP2000112504A (en) Production factory parameter optimization system and its calculation medium
JPS61153738A (en) Rule processing system
JPS61177547A (en) Rule processing method
JPS62117035A (en) Rule processor
JP2814391B2 (en) Programming device for fuzzy inference rules
JPS62297942A (en) Rule processing system
JPS61133405A (en) Processing system of rule
JPS60173635A (en) Control system of installation group
JPH10320187A (en) System modeling method and data communication method
Chu et al. The use of artificial intelligence in process planning
Horvath et al. Modeling of manufacturing processes using object oriented extended Petri nets and advanced knowledge representations