JPH063918B2 - Integrated wiring system - Google Patents
Integrated wiring systemInfo
- Publication number
- JPH063918B2 JPH063918B2 JP61214030A JP21403086A JPH063918B2 JP H063918 B2 JPH063918 B2 JP H063918B2 JP 61214030 A JP61214030 A JP 61214030A JP 21403086 A JP21403086 A JP 21403086A JP H063918 B2 JPH063918 B2 JP H063918B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- wiring
- input
- cim
- output
- 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 - Lifetime
Links
Landscapes
- Small-Scale Networks (AREA)
- Microcomputers (AREA)
- Devices For Executing Special Programs (AREA)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、マイクロコンピュータを利用したデータ伝送
方式に係り、特に自動車内での各種制御信号の伝送に好
適な集約配線システムに関する。The present invention relates to a data transmission system using a microcomputer, and more particularly to an integrated wiring system suitable for transmitting various control signals in a vehicle.
例えば自動車などには、各種のランプやモータなどの電
装品、それに制御用の各種のスイッチやセンサ、それに
アクチュエータなどの電気装置(以下、これらの電装品
や電気装置などを負荷という)が多数配置され、その数
はカーエレクトロニクス化が進むに伴って増加の一途を
たどっており、総数で数百点にも及ぶようになってい
る。For example, in automobiles, many electrical components such as various lamps and motors, various switches and sensors for control, and electrical devices such as actuators (hereinafter, these electrical components and electrical devices are called loads) are arranged. However, the number has been increasing with the progress of car electronics, and the total number has reached to several hundred.
このため、従前のように、これら多数の負荷に対して個
別に配線を行っていたのでは、大規模で極めて複雑な配
線を必要とし、コストアップや重量、スペースの増加、
或いは相互干渉の発生など大きな問題を生じてしまう。Therefore, as in the past, wiring was performed individually for a large number of these loads, large-scale and extremely complicated wiring is required, and cost increase, weight increase, space increase,
Alternatively, a big problem such as mutual interference occurs.
そこで、光ファイバなどによる共通の伝送路を用い、中
央局でのマイコン制御(マイクロコンピュータ制御)に
より各種の負荷の間でのデータ伝送を行うようにした、
いわゆる集約配線システムが例えば特開昭60−551
号公報などにより開示されている。Therefore, using a common transmission line such as an optical fiber, data transmission between various loads is performed by microcomputer control (microcomputer control) at the central office.
A so-called integrated wiring system is disclosed, for example, in JP-A-60-551.
It is disclosed in Japanese Patent Publication No.
ところで、このような集約配線システムでは、各種の負
荷相互間での接続条件を所定の論理(以下、これを配線
論理)としてテーブル化しておき、これを検索すること
によって各種負荷の間での接続制御を行うようになって
いるが、上記従来技術においては、上記した配線論理の
テーブル化については特に配慮されていなかった。By the way, in such an integrated wiring system, a connection condition between various loads is tabulated as a predetermined logic (hereinafter, this is a wiring logic) and a table is searched for connection between the various loads. Although the control is performed, the above prior art does not pay particular attention to the above-mentioned wiring logic table formation.
なお、この配線論理を具体的に言えば、人力負荷である
スイッチと、出力負荷であるランプを想定した場合、ど
のスイッチ(複数の場合を含む)が閉じられたときには
どのランプ(複数の場合を含む)が転倒するかという条
件を表すものである。Note that, specifically speaking of this wiring logic, when a switch that is a human load and a lamp that is an output load are assumed, which lamp (including multiple cases) is closed when which switch (including multiple cases) is closed. Including) represents the condition of whether to fall.
上記したところから明らかなように、集約配線システム
における配線論理とは、各負荷間での接続条件を表す論
理演算式となっている。As is clear from the above description, the wiring logic in the integrated wiring system is a logical operation expression representing the connection condition between the loads.
しかして上記従来技術では、この論理演算式のテーブル
化に際しての記述形式について特に考慮されておらず、
このためテーブル検索に時間が掛かるという問題があっ
た。However, in the above-mentioned prior art, no particular consideration is given to the description format when tabulating this logical operation expression,
Therefore, there is a problem that it takes time to search the table.
これを以下に説明すると、例えば、自動車のパワーウイ
ンドウ装置では、 キースイッチ :KS ドアロックスイッチ :LS メインスイッチ :MS ドアスイッチ :DS ウインドウ駆動モータ:M を備えており、これらの間での配線論理は、 M=KS*LS*(MS+DS) で表され、これをメモリにストアしてテーブル化しなけ
ればならない。This will be described below. For example, an automobile power window device is provided with a key switch: KS door lock switch: LS main switch: MS door switch: DS window drive motor: M, and a wiring logic between them. Is represented by M = KS * LS * (MS + DS), which must be stored in memory and tabulated.
ところで、このような配線論理情報をメモリにストアす
る具体的な方法としては、従来から次の2種の方法が考
えられている。By the way, the following two methods have been conventionally considered as specific methods for storing such wiring logic information in a memory.
1.高級言語的方法 2.アセンブラ的方法 しかして、これらのうち、まず前者の高級言語的方法
は、BASIC,FORTRANなどの言語と同じ考え
で、必要な配線論理をそのままメモリにストアするとい
う方法である。例えば、上記の例においては、KS,L
S……等を符号化し、メモリにストア後、検索を行うこ
とになる。1. High-level linguistic method 2. The assembler method. Of these, the former high-level language method is a method of storing necessary wiring logic as it is in the memory in the same idea as languages such as BASIC and FORTRAN. For example, in the above example, KS, L
After encoding S ... etc. and storing it in the memory, a search will be performed.
ところがこの場合、括弧が式中に入るため、演算子の実
行は左から順に行うことができない。具体的には、*,
*,+という3つの演算子が存在するが、始めに最も右
の+を実行し、次に最も左の*を実行し、最後にまん中
の*を実行しなければならない。本方式では、そういっ
た演算子のプライオリティを定めることができないた
め、メモリ検索に膨大な時間を要する。However, in this case, since the parentheses are included in the expression, the operators cannot be executed in order from the left. In particular,*,
There are three operators, *, +, but the rightmost + must be executed first, then the leftmost *, and finally the middle *. In this method, it is not possible to determine the priority of such operators, so it takes a huge amount of time to search the memory.
また、この方法を採用した場合、入力と演算子をそれぞ
れ符号化しなければならない。その際、入力データは1
/0しかとらないため、1ビットだけ使用すればよい筈
であるが、実際には演算子の種類が多い(AND,O
R,NOT等)ため、複数ビットを用いて表現しなけれ
ばならない。その際、ビッドごとの検索は時間を要する
ため、他の手段により検索時間を短縮する方法の適用も
求められていた。Also, if this method is adopted, the input and the operator must be encoded respectively. At that time, the input data is 1
Since it takes only / 0, only one bit should be used, but in reality there are many types of operators (AND, O
R, NOT, etc.), therefore, must be expressed using multiple bits. At that time, since the search for each bid takes time, it has been required to apply a method of shortening the search time by other means.
次に後者のアセンブラ的方法であるが、この方法は、例
えば上記の例でいえば、 というようにメモリにストアしていくものである。Next is the latter assembler method. This method is, for example, in the above example, It is something that is stored in memory.
ところが、この方法では、処理ステップ数が膨大なもの
になり、かつ、配線論理が式として表現できないため、
生産性、保守性に乏しいという問題がある。However, with this method, the number of processing steps becomes enormous, and the wiring logic cannot be expressed as an equation.
There is a problem of poor productivity and maintainability.
本発明の目的は、上記した従来技術の問題点に対処で
き、 (1)表現に一般性があること。The object of the present invention is to be able to deal with the above-mentioned problems of the prior art and (1) be general in expression.
(2)最小表現法で表現できること。(2) What can be expressed by the minimum representation method.
(3)高速処理が可能なこと。(3) High-speed processing is possible.
(4)論理の追加,削除などといった変更が容易なこと。(4) Easy to change such as adding and deleting logic.
などの条件を満足し、かつ、集約配線システムにおける
特有な問題である、ANDやORなどといった論理演算
子を複数含んだ論理の表現に適した記述法とその展開法
を提供することにある。It is an object of the present invention to provide a description method and its expansion method that satisfy the above conditions and are suitable for the expression of logic including a plurality of logical operators such as AND and OR, which is a peculiar problem in the integrated wiring system.
上記目的は、本発明によれば、集約配線システムにおけ
る配線論理を逆ポーランド記法により記述してメモリに
ストアし、テーブル化すると共に、このテーブルとし
て、入出力関係が1対1の場合での接続条件を記述した
1対1配線テーブルと、入出力関係が1対1以外の場合
での接続条件を記述した一般配線テーブルの2種のテー
ブルを設け、かつ、上記一般配線テーブルに対する入力
データと演算子データの記述にそれぞれ1バイトのデー
タを割り当てた上で、これら入力データと演算子データ
の区別を各バイトの最上位のビットによって行なうよう
にして構成される。According to the present invention, the wiring logic in the integrated wiring system is described by the reverse Polish notation, stored in the memory and tabulated, and the connection in the case where the input / output relationship is 1: 1 is used as the table. Two types of tables are provided: a one-to-one wiring table that describes the conditions and a general wiring table that describes the connection conditions when the input / output relationship is other than one-to-one, and the input data and operation for the general wiring table are performed. Each byte of data is assigned to the description of the child data, and the input data and the operator data are distinguished by the most significant bit of each byte.
ここで、逆ポーランド記法について説明する。Here, the reverse Polish notation will be described.
論理演算式は一般に、例えば次のように表されている。A logical operation expression is generally expressed as follows, for example.
ところが、逆ポーランド記法では、この論理演算式の右
辺を次のようにして表すものである。 However, in the reverse Polish notation, the right side of this logical operation expression is expressed as follows.
従って、例えば、 y=X+Yの右辺→XY+ y=(W+X)*(Y+Z)の右辺 →WX+YZ+* となるものである。 Therefore, for example, the right side of y = X + Y → XY + y = (W + X) * (Y + Z) right side → WX + YZ ++.
逆ポーランド記法によれば、演算子がそのプライオリテ
ィの高い順に記述される。According to the reverse Polish notation, operators are described in order of their priority.
例えば、上記の式 M=KS*LS*(MS+DS)………(a) の右辺を逆ポーランドK法で表せば、 KS LS MS DS+** ………(b) となる。For example, if the right side of the above equation M = KS * LS * (MS + DS) ... (a) is represented by the inverse Polish K method, it becomes KSLSMSDS + ** ... (b).
(a)式では演算子が実行順に並んでいないが、これに対
して(b)式では演算子が実行順に並んでおり、従って、
データ処理時間が短縮されている。In the expression (a), the operators are not arranged in the execution order, whereas in the expression (b), the operators are arranged in the execution order.
Data processing time is reduced.
また、配線テーブルが1対1配線テーブルと、一般配線
テーブルに分けられた形になっており、この結果、入出
力関係が1対1になっていたときには、簡単な1対1配
線テーブルの検索だけで済むので、更にデータ処理時間
が短縮できる。The wiring table is divided into a one-to-one wiring table and a general wiring table. As a result, when the input / output relationship is one-to-one, a simple one-to-one wiring table search is performed. Since it is only necessary, the data processing time can be further shortened.
さらに、一般配線テーブルに対する入力データと演算子
データの記述にそれぞれ1バイトのデータを割り当てた
上で、これら入力データと演算子データの区別を各バイ
トの最上位のビットによって行なうようにしたので、こ
の最上位のビットを調べるだけで入力と演算子の判別が
可能になるので、これによるデータ処理時間の短縮も得
られることになる。Furthermore, since 1 byte of data is assigned to each of the description of the input data and the operator data in the general wiring table, the input data and the operator data are distinguished by the most significant bit of each byte. Since the input and the operator can be discriminated only by examining the most significant bit, the data processing time can be shortened.
以下、本発明による集約配線システムについて、図示の
実施例により詳細に説明する。Hereinafter, the integrated wiring system according to the present invention will be described in detail with reference to the illustrated embodiments.
第1図は本発明の一実施例で、このシステムでは信号伝
送路として光ファイバケーブルOFを用い、中央制御装
置CCU(以下、単にCCUという、なお、これはCent
ral Control Unitの略)10と複数の端末処理装置LC
U(以下、単にLCUという、なお、これはLocal Cont
rol Unitの略)11〜14との間を光信号チャンネルで
共通に結合したもので、光ファイバケーブルOFの分岐
点には光分岐コネクタOCが設けてある。FIG. 1 is an embodiment of the present invention. In this system, an optical fiber cable OF is used as a signal transmission line, and a central control unit CCU (hereinafter, simply referred to as CCU, which is a Cent
Ral Control Unit) 10 and a plurality of terminal processing devices LC
U (hereinafter referred to simply as LCU, this is Local Cont
RL Unit) 11 to 14 are commonly coupled by an optical signal channel, and an optical branch connector OC is provided at a branch point of the optical fiber cable OF.
CCU10は自動車のダッシュボードの近傍など適当な
場所に設置され、システム全体の制御を行うようになっ
ている。The CCU 10 is installed at an appropriate place such as near the dashboard of an automobile and controls the entire system.
LCU11〜14は各種の操作スイッチSW、メータM
などの表示器、ランプL、センサSなど自動車内に多数
設置してある負荷の近傍に、所定の数だけ分散して配置
されている。LCU 11 to 14 are various operation switches SW and meter M
A predetermined number of the display devices, lamps L, sensors S, etc. are arranged in the vicinity of loads installed in the automobile in a dispersed manner.
CCU10及び各LCU11〜14が光ファイバケーブ
ルOFと結合する部分には光信号と電気信号を双方向に
変換する光電変換モジュールO/E66〜68が設けら
れている。Photoelectric conversion modules O / E 66 to 68 for bidirectionally converting an optical signal and an electric signal are provided in a portion where the CCU 10 and each of the LCUs 11 to 14 are coupled to the optical fiber cable OF.
CCU10はマイクロコンピュータ18を備え、シリア
ルデータによるデータ通信機能を持ち、これに対応して
各LCUには通信処理回路CIM(以下、単にCIMと
いう、なお、これはCommunication Interface Moduleの
略)15〜17が設けられ、CCUはLCUの一つを順
次選択し、そのLCUとの間でのデータの授受を行い、
これを繰り返すことにより1チャンネルの光ファイバケ
ーブルOFを介しての多重伝送が可能になり、複雑で大
規模な自動車内配線を簡略化することができる。The CCU 10 includes a microcomputer 18 and has a data communication function by serial data. Corresponding to this, each LCU has a communication processing circuit CIM (hereinafter simply referred to as CIM, which is an abbreviation of Communication Interface Module) 15 to 17 Is provided, the CCU sequentially selects one of the LCUs, exchanges data with the LCU,
By repeating this, it becomes possible to perform multiplex transmission via the one-channel optical fiber cable OF, and it is possible to simplify complicated and large-scale wiring in the vehicle.
CCU10内のマイクロコンピュータ18モニタテーブ
ル97,制御テーブル98,それに配設テーブル99の
3種のテーブルを備えている。The CCU 10 is provided with three types of tables: a microcomputer 18 monitor table 97, a control table 98, and an arrangement table 99.
モニタテーブル97は、CCU10がLCU11〜14
に送ったデータと、LCU11〜14からCCU10に
送り返されたデータとを格納する働きをする。なお、伝
送前後のデータを両方共に格納するようにしているの
は、伝送前後の両データをチェックし、それらが一致し
ない負荷に対してだけCCU10から制御データを送る
方式が採用されているからである。In the monitor table 97, the CCU 10 has LCUs 11 to 14
And the data sent back to the CCU 10 from the LCUs 11-14. It should be noted that the reason why both the data before and after transmission is stored is that a method is adopted in which both data before and after transmission are checked and the control data is sent from the CCU 10 only for loads where they do not match. is there.
制御テーブル98は、各負荷に送出すべき、例えば、オ
ン,オフなどのデータを格納する働きをする。The control table 98 has a function of storing data to be sent to each load, such as on / off data.
配線テーブル99は、前述の配線論理を格納する働きを
する。The wiring table 99 serves to store the above-mentioned wiring logic.
第2図は第1図の実施例におけるCIM15〜17の構
成を示したもので、RXDはシリアルデータとして入力
される受信データ、TXDは同じく送信データ、XTA
Lは各CIMに設置されている水晶発振子からの信号、
EXTALは出力端子である。FIG. 2 shows the configuration of the CIMs 15 to 17 in the embodiment of FIG. 1, RXD is the received data input as serial data, TXD is the same transmitted data, XTA.
L is the signal from the crystal oscillator installed in each CIM,
EXTAL is an output terminal.
クロック回線308は、発振回路310から供給される
クロック信号と同期回路309からの同期信号により、
位相が半周期分ずれている2相のクロックφM,φSを
発生し、これらをステージカウンタ306に供給する。The clock line 308 receives the clock signal supplied from the oscillation circuit 310 and the synchronization signal from the synchronization circuit 309,
Two-phase clocks φ M and φ S whose phases are shifted by a half cycle are generated and supplied to the stage counter 306.
ステージカウンタ306は、これらのクロックφM,φ
Sによって動作し、受信,送信などといったCIM全体
の状態をウカント値によって認識する働きをし、この結
果はステージデコーダ307によってデコードされ、動
作に必要な各種の制御信号が、このステージデコーダ3
07から出力される。The stage counter 306 controls the clocks φ M and φ.
The stage decoder 307 operates by S and recognizes the state of the entire CIM such as reception and transmission by the ucant value. The result is decoded by the stage decoder 307, and various control signals necessary for the operation are sent to the stage decoder 3
It is output from 07.
一方、スイッチ,ランプ,メータ,センサなど各種の電
気装置からなる負荷は、I/Oバッファ301の入出力
端子に接続されるようになっている。そして、このI/
Oバッファ301の入出力端子は、そこに接続すべき負
荷の種類に応じて、予めその入出力方向が任意に選択で
きるようになっており、そのアドレス指定はアドレスデ
コーダ304により、アドレス値入力ADDR0〜AD
DR5のデコードによって与えられるようになってい
る。On the other hand, loads including various electric devices such as switches, lamps, meters, and sensors are connected to the input / output terminals of the I / O buffer 301. And this I /
The input / output terminal of the O buffer 301 can be arbitrarily selected in advance in accordance with the type of load to be connected thereto, and its address is designated by the address decoder 304 to input the address value ADDR0. ~ AD
It is designed to be given by the decoding of DR5.
25ビットのシフトレジスタ302はI/Oバッファ3
01との間でパラレルデータ伝送を行うようになってお
り、他方、シリアルデータとして入力される受信データ
RXDはそのままシリアルにシフトレジスタ302へ書
込まれ、その後、I/Oバッファ301にパラレル伝送
される。同様に、I/Oバッファ301のデータはパラ
レルにシフトレジスタ302へ書込まれ、その後、この
シフトレジスタ302からシリアルに読出されて送信デ
ータTXDとなる。The 25-bit shift register 302 is the I / O buffer 3
01 parallel data transmission, and on the other hand, the received data RXD input as serial data is serially written to the shift register 302 as it is, and then parallel transmitted to the I / O buffer 301. It Similarly, the data in the I / O buffer 301 is written in parallel to the shift register 302, and then serially read from the shift register 302 to become the transmission data TXD.
フエイルセーフレジスタ305には、予めシフトレジス
タ302からフエイルセーフデータがらストアされてお
り、このフエイルセーフデータは伝送異常などが発生し
たときに、このフエイルセーフレジスタ305からI/
Oバッファ301にパラレル伝送され、これによりフエ
イルセーフが保障される。Fail-safe data is previously stored in the fail-safe register 305 from the shift register 302. The fail-safe data is stored in the I / O from the fail-safe register 305 when a transmission error occurs.
The data is transmitted in parallel to the O buffer 301, which guarantees fail-safe.
その他の必要とする制御信号などについては、MPU
(マイクロ・プロセッシング・ユニット)の状態を制御
するMPUインターフェイス部311や、送信モード,
受信モードなどといってCIMのモードを規定するモー
ドデコーダ312,それにアドレスの誤りを検出するコ
ンパレータ303などから発生されるようになってい
る。For other required control signals, etc., MPU
MPU interface unit 311 for controlling the state of (micro processing unit), transmission mode,
It is generated from a mode decoder 312 that defines a CIM mode called a reception mode and a comparator 303 that detects an address error.
従って、CCUから伝送されてくる受信データRXDは
I/Oバッファ301からそれぞれの負荷にパラレル伝
送され、他方、各負荷からのデータはI/O破風301
からシフトレジスタ302にパラレルシフトされた後、
シリアルに読出されて送信データTXDとなり、CCU
に送られることになる。Therefore, the received data RXD transmitted from the CCU is transmitted in parallel from the I / O buffer 301 to each load, while the data from each load is I / O gable 301.
From the parallel shift register to the shift register 302,
It is serially read and becomes transmission data TXD, and CCU
Will be sent to.
次に、上記した各種テーブルを用いたデータ伝送動作に
ついて説明する。Next, a data transmission operation using the above various tables will be described.
第3図はモニタテーブルと各CIMとの関係を示したも
ので、このモニタテーブルとそれに制御テーブルとは、
各CIMごとに16個のデータをもつ。これは第3図に
示すように、この実施例では、各CIMのI/Oバッフ
ァが16個の入出力端子をもち、接続可能な負荷の数が
16となっているからである。FIG. 3 shows the relationship between the monitor table and each CIM. The monitor table and the control table are as follows.
There are 16 data for each CIM. This is because, in this embodiment, the I / O buffer of each CIM has 16 input / output terminals and the number of connectable loads is 16, as shown in FIG.
そして、テーブル数はCIMの数と同数確保する。な
お、この実施例では、CIMの個数は9となっている。Then, the same number of tables as the number of CIMs are secured. In this embodiment, the number of CIMs is 9.
上記したように、モニタテーブルは伝送前後の各CIM
のデータを格納するものである。As described above, the monitor table is used for each CIM before and after transmission.
The data of is stored.
そこで、いま、CIM1のスイッチSW1をオンに操作
したとき、これに対して所定の配線論理を持つことによ
りランプLが点灯するように制御されたとすると、この
ときの制御手順は次のようになる。Therefore, assuming that when the switch SW1 of the CIM1 is turned on, the lamp L is controlled to light by having a predetermined wiring logic, the control procedure at this time is as follows. .
(1)各CIMはCCに対して負荷の状態を表すデータを
送信する。(1) Each CIM transmits data indicating the load state to CC.
(2)CCUは、これらの各CIMからのデータ受信後、
それをモニタテーブルにそれをストアする。そしてモニ
タテーブルの伝送前後のデータをチェックし、変化箇所
を検索する。この時点でCCUは、各CIMのどのスイ
ッチがオン/オフされたか(この場合は、CIM1のS
W1)を知る。(2) The CCU, after receiving the data from each of these CIMs,
Store it in the monitor table. Then, the data before and after the transmission in the monitor table is checked to find the changed portion. At this point, the CCU determines which switch of each CIM has been turned on / off (in this case the S of CIM1).
Know W1).
(3)モニタテーブルにストアされたデータを入力とし、
配線テーブルを参照する。そして配線論理に基づき、負
荷データ、つまりどのランプをオン/オフするかといっ
た情報(この場合はCIMIのL)を決定する。(3) Input the data stored in the monitor table,
Refer to the wiring table. Then, based on the wiring logic, load data, that is, information such as which lamp is to be turned on / off (L in CIMI in this case) is determined.
(4)CCUは伝送路を介し、各CIMの制御テーブルに
基づいた順にモニタテーブルのテータを送信する。CI
M1はデータ受信後、ランプLをオンする。(4) The CCU transmits the data of the monitor table in the order based on the control table of each CIM via the transmission path. CI
After receiving the data, M1 turns on the lamp L.
次に、これらのテーブルを利用した制御データの生成法
について、さらに具体的に説明する。Next, a method of generating control data using these tables will be described more specifically.
ところで、この実施例の特徴の一つとして、この配線テ
ーブルを2種のものに分割し、それぞれを以下のように
した点がある。By the way, one of the features of this embodiment is that this wiring table is divided into two types, and each of them is set as follows.
すなわち、まず一方のテーブルには、入出力関係を1対
1に対応させて記述し、これはそのまま配線テーブルと
いう。次に、他方のテーブルには入出力関係が1対1以
外のもの、つまり多対1の関係のものについての配線論
理を上記した逆ポーランド記法で記述したものとし、こ
れを一般配線テーブルという。That is, first, one table describes the input / output relationship in a one-to-one correspondence, which is called a wiring table as it is. Next, in the other table, it is assumed that the wiring logic for the input / output relations other than one-to-one relation, that is, the relation of many-to-one relation is described by the above-mentioned reverse Polish notation, and this is called a general wiring table.
そして、配線テーブルには、第4図(a)に示すように、
その第2バイト目の第1ビットをフラグとして使用する
ようにし、このビットが“0”のときには入出力関係が
1対1対応のものであり、従って、このときには、この
配線テーブルだけの参照で出力が与えられることを意味
し、このビットが“1”になっていたときには、その入
力に対する出力の関係は多対1対応のものであり、従っ
て、このときには、さらに一般配線論理テーブルGET
BLをも参照して出力を定めるようにしている。Then, in the wiring table, as shown in FIG.
The first bit of the second byte is used as a flag, and when this bit is "0", the input / output relationship is one-to-one correspondence. Therefore, at this time, only this wiring table can be referenced. This means that the output is given, and when this bit is "1", the relationship of the output to the input is a many-to-one correspondence. Therefore, at this time, the general wiring logic table GET is further added.
The output is determined by also referring to BL.
ここで、第4図(a)に示す配線テーブルが1対1対応と
なっているということは、次のようなことである。Here, the fact that the wiring table shown in FIG. 4 (a) has a one-to-one correspondence is as follows.
すなわち、入出力関係が実際に1対1対応になっている
場合は勿論、そうでなく多対1の場合でも、この配線テ
ーブルにはとにかく一応は1対1対応で記述しておくと
いうことである。つまり、複数個の入力のAND,OR
をとって出力を決定するという、いわゆる一般配線論理
の場合にも、論理を全入力について1対1の関係に分解
するということである。That is, not only when the input / output relationship is actually one-to-one correspondence but also when it is many-to-one correspondence, anyway, in this wiring table, the one-to-one correspondence is described. is there. That is, AND, OR of multiple inputs
Even in the case of so-called general wiring logic in which the output is determined by taking the above, the logic is decomposed into a one-to-one relationship for all inputs.
例えば、y=a+b+c なる配線論理が存在したとすると、この配線テーブルに
は、入力aに対する出力はy、bに対してもy、さらに
cに対してもyというようにストアするのである。For example, if there is a wiring logic of y = a + b + c, the output for the input a is stored in this wiring table as y, y for b, and y for c.
ストア例を第4図(b)に示すと、これは、 入力CIM#5,端子#Fに対し出力CIM#C,
端子#0。1対1。An example of the store is shown in FIG. 4 (b). This shows that for input CIM # 5, terminal #F, output CIM # C,
Terminal # 0, 1: 1.
入力CIM#0,端子#0に対して出力CIM#
9,端子6。多対1。Input CIM # 0, output CIM # for terminal # 0
9, terminal 6. Many-to-one.
となる。Becomes
また、一般配線論理テーブルGETBLは第5図に示す
ようになっており、出力に対する配線論理が逆ポーラン
ド記法で記述されているものである。Further, the general wiring logic table GETBL is as shown in FIG. 5, and the wiring logic for the output is described in reverse Polish notation.
ここで、演算子としては、 NOT:(80)H AND:(C0)H OR :(E0)H の3種が採用されており、他に、 終了 :(FF)H が使用されている。Here, three types of operators: NOT: (80) H AND: (C0) H OR: (E0) H are adopted, and in addition, end: (FF) H is used.
従って、第5図の1行目には、 出力,CIM#3,端子#Dに対して、 入力論理(CIM#2,端子#4)* (CIM#A,端子#0) が記述されていることになり、第2行目には、 出力,CIM#3,端子#Eに対して、 入力論理{(CIM#D,端子#0)+ (CIM#9,端子#3)}* (CIM#5,端子#0) が記述されていることになる。Therefore, in the first line of FIG. 5, the input logic (CIM # 2, terminal # 4) * (CIM # A, terminal # 0) is described for the output, CIM # 3, and terminal #D. Therefore, in the second line, for the output, CIM # 3, terminal #E, the input logic {(CIM # D, terminal # 0) + (CIM # 9, terminal # 3)} * ( CIM # 5, terminal # 0) are described.
さらに、第3行目は、 出力,CIM#4,端子#5に対して、 入力論理(CIM#0,端子#3)+ (CIM#5,端子#5) について記述していることになる。Furthermore, the third line describes the input logic (CIM # 0, terminal # 3) + (CIM # 5, terminal # 5) for the output, CIM # 4, and terminal # 5. .
なお、この第5図のテーブルで、第3バイトは、テーブ
ル検索時での制御を容易にするために設けたものであ
る。The third byte in the table of FIG. 5 is provided to facilitate control during table search.
次に、これらのテーブルを利用した具体的な制御データ
生成処理について、第6図及び第7図を用いて説明す
る。Next, a specific control data generation process using these tables will be described with reference to FIGS. 6 and 7.
第6図において、 (1)旧モニタテーブルの内容は、予め全てクリアされて
いるものとする。In FIG. 6, (1) the contents of the old monitor table are all cleared in advance.
(2)スイッチのオン情報は新モニタテーブル内にストア
される。この場合、入力はCIM#0,端子#2とす
る。新旧モニタテーブルのチェックにより、この入力デ
ータを検索する。(2) The switch ON information is stored in the new monitor table. In this case, the inputs are CIM # 0 and terminal # 2. This input data is searched by checking the old and new monitor tables.
(3)入力データがどの出力端子につながっているかを調
べるため、配線テーブルを検索する。配線テーブルの仕
様は第4図のようになっているため、入力CIM#,入
力端子#を逐次検索することにより出力を得る。この場
合、出力はCIM#0,端子#1となる。第2バイトは
(80)Hと、最上位ビットが1になる。そのため、該
当論理が多入力1出力であることになる。(3) Search the wiring table to find out which output terminal the input data is connected to. Since the specifications of the wiring table are as shown in FIG. 4, the output is obtained by sequentially searching the input CIM # and the input terminal #. In this case, the output is CIM # 0 and terminal # 1. The second byte has (80) H, and the most significant bit is 1. Therefore, the corresponding logic has multiple inputs and one output.
(4)一般配線論理テーブルGETBLの該当箇所を検索
する。本テーブルの仕様は第5図に示すように、出力C
IM#と出力端子#はテーブルの最も左に来るので、該
当出力、この場合はCIM#0,端子#1の行を検索す
る。(4) Search the corresponding part of the general wiring logic table GETBL. The specifications of this table are as shown in FIG.
Since the IM # and the output terminal # are located at the leftmost side of the table, the corresponding output, in this case, the row of CIM # 0 and the terminal # 1 is searched.
(5)GETBLの該当行が第7図に示すものであると仮
定する。この場合、正のデータ(各バイトの第1ビット
が“0”のデータ)は2バイトを用いて入力CIM#,
端子#を表し、負のデータ(同じく第1ビットが“1”
になっているデータ)は1バイトを用いて表す。例えば
本例では、CIM#5の端子#2と、CIM#0の端子
#2とのORをとり、CIM#0の端子#1にストアす
るということになる。(5) Assume that the relevant line of GETBL is as shown in FIG. In this case, positive data (data in which the first bit of each byte is “0”) is input using two bytes, CIM #,
Represents terminal #, negative data (also the first bit is "1"
Data) is represented using 1 byte. For example, in this example, the terminal # 2 of CIM # 5 and the terminal # 2 of CIM # 0 are ORed and stored in the terminal # 1 of CIM # 0.
(6)入力データは、オン/オフ情報をモニタテーブルよ
り検索して、バッファにストアする。演算子(この場合
は(C0)H)、終了判定(FF)Hはそのままストア
する。この結果、バッファには入力データ、演算子とも
1バイトデータとしてストアされる。(6) For input data, ON / OFF information is retrieved from the monitor table and stored in the buffer. The operator ((C0) H in this case) and the end determination (FF) H are stored as they are. As a result, both the input data and the operator are stored in the buffer as 1-byte data.
(7)スタック演算を行い、出力データを計算する。その
方法は、データを1バイトずつ左からチェックしてい
き、負、つまり演算子であったときには前の2つの1バ
イトデータに対して演算を行う。本例では、(0
0)H,(01)Hと進み、(C0)Hのとき、はじめ
て両データのOR演算を行う。(7) Perform stack operation and calculate output data. In this method, data is checked byte by byte from the left, and when it is negative, that is, when it is an operator, the operation is performed on the previous two 1-byte data. In this example, (0
0) H , (01) H , and when (C0) H , the OR operation of both data is performed for the first time.
(8)出力データを、モニタテーブルにストアする。従っ
て、モニタテーブルは第8図に示すようになり、これが
負荷に供給され、ランプが点灯する。(8) Store the output data in the monitor table. Therefore, the monitor table is as shown in FIG. 8, which is supplied to the load and the lamp is turned on.
従って、この実施例によれば、入出力関係が多対1の場
合で、複雑な論理関係にある場合でも、この演算に使用
する一般配線論理テーブルが逆ポーランド記法で記述さ
れているため、演算に必要な処理が効率化され、高速応
答が得られる。Therefore, according to this embodiment, even when the input / output relationship is many-to-one and the logical relationship is complicated, the general wiring logic table used for this operation is described in the reverse Polish notation. The processing required for is efficient and a high-speed response is obtained.
また、上記実施例では、配線テーブルが分割されてお
り、入出力関係が1対1となっている場合には、これに
よっても高速応答が得られるようになっている。Further, in the above embodiment, the wiring table is divided, and when the input / output relationship is one-to-one, the high speed response can be obtained also by this.
さらに、上記実施例では、一般配線論理テーブルに対す
る入力データと演算子データの記述にそれぞれ1バイト
を用い、かつ両者の区別を各バイトの最上位ビットによ
って行うようにしている。Further, in the above embodiment, 1 byte is used for describing the input data and the operator data for the general wiring logic table, and the two are distinguished by the most significant bit of each byte.
従って、データをアキュームレータにロードし、この最
上位ビットを判断するだけで入力と演算子の判別が可能
になり、出力効率の悪い1ビットごとのシフト動作が不
要になる。そして、この結果、さらに高速応答が可能に
なる。Therefore, the input and the operator can be discriminated only by loading the data into the accumulator and discriminating the most significant bit, and the shift operation for each bit in which the output efficiency is poor becomes unnecessary. As a result, a higher speed response becomes possible.
本発明によれば、配線論理表現に一般性を持たせ、かつ
最小表現法で表現できるので、効率良く、しかも高速に
集約配線システムを制御できる効果がある。According to the present invention, since the wiring logic expression can be generalized and can be expressed by the minimum expression method, there is an effect that the integrated wiring system can be controlled efficiently and at high speed.
さらに論理の追加、削除などといった変更が容易になる
ので、負荷のメーカ、機種等の変更により、その入出力
関係を変えざるをえないときでも、容易に対応できる効
果がある。Furthermore, since changes such as addition and deletion of logic become easy, there is an effect that even if the input / output relationship must be changed by changing the load manufacturer, model, etc.
第1図は本発明による集約配線システムの一実施例を示
す全体構成図、第2図はCIMの一例を示すブロック
図、第3図は本発明の一実施例におけるテーブルを利用
したデータ伝送の説明図、第4図は配線テーブルの一実
施例を示す説明図、第5図は一般配線論理テーブルの一
実施例を示す説明図、第6図はデータ伝送処理をさらに
具体的に示す説明図、第7図は最終的なデータ生成処理
の説明図、第8図はモニタテーブルの説明図である。 10…CCU、11〜14…LCU、15〜17…CI
M、18…マイクロコンピュータ、66〜68…光電変
換モジュール、97…モニタテーブル、98…制御テー
ブル、99…配線テーブル、301…I/Oバッファ、
302…シフトレジスタ、303…コンパレータ、30
4…アドレスデコーダ、305…フエイルセーフレジス
タ、306…ステージカウンタ、307…ステージデコ
ーダ、308…クロック回路、309…同期回路、31
0…発振回路、311…MPUインタフェース、312
…モードデコーダ。FIG. 1 is an overall configuration diagram showing an embodiment of an integrated wiring system according to the present invention, FIG. 2 is a block diagram showing an example of CIM, and FIG. 3 is a data transmission using a table in an embodiment of the present invention. Explanatory diagram, FIG. 4 is an explanatory diagram showing an example of a wiring table, FIG. 5 is an explanatory diagram showing an example of a general wiring logic table, and FIG. 6 is an explanatory diagram showing the data transmission process more specifically. , FIG. 7 is an explanatory diagram of the final data generation processing, and FIG. 8 is an explanatory diagram of the monitor table. 10 ... CCU, 11-14 ... LCU, 15-17 ... CI
M, 18 ... Microcomputer, 66-68 ... Photoelectric conversion module, 97 ... Monitor table, 98 ... Control table, 99 ... Wiring table, 301 ... I / O buffer,
302 ... Shift register, 303 ... Comparator, 30
4 ... Address decoder, 305 ... Fail safe register, 306 ... Stage counter, 307 ... Stage decoder, 308 ... Clock circuit, 309 ... Synchronous circuit, 31
0 ... Oscillation circuit, 311 ... MPU interface, 312
… Mode decoder.
───────────────────────────────────────────────────── フロントページの続き (72)発明者 浜野 文夫 茨城県勝田市大字高場2520番地 株式会社 日立製作所佐和工場内 (56)参考文献 特開 昭57−203336(JP,A) 特開 昭60−73731(JP,A) 特開 昭61−210480(JP,A) 特開 昭59−3688(JP,A) ─────────────────────────────────────────────────── ─── Continuation of front page (72) Fumio Hamano Inventor Fumio Hamano 2520 Takaba, Katsuta-shi, Ibaraki Sawa Plant, Hitachi, Ltd. (56) References JP-A-57-203336 (JP, A) JP-A-60 -73731 (JP, A) JP 61-210480 (JP, A) JP 59-3688 (JP, A)
Claims (1)
記法で記述格納した配線テーブルを備え、この配線テー
ブルの検索を含む中央局によるコンピュータ制御のもと
に、上記複数の端子間でのデータ伝送を共通のデータ伝
送系を介して行なうようにした集約配線システムにおい
て、上記配線テーブルとして、入出力関係が1対1の場
合での接続条件を記述した1対1配線テーブルと、入出
力関係が1対1以外の場合での接続条件を記述した一般
配線テーブルの2種のテーブルを設け、かつ、上記一般
配線テーブルに対する入力データと演算子データの記述
にそれぞれ1バイトのデータを割り当てた上で、これら
入力データと演算子データの区別を各バイトの最上位の
ビットによって行なうように構成したことを特徴とする
集約配線システム。1. A wiring table in which connection conditions between a plurality of terminals are described and stored in reverse Polish notation is provided, and under the computer control by the central office including a search of the wiring table, a connection between the plurality of terminals is performed. In an integrated wiring system in which data transmission is performed via a common data transmission system, as the wiring table, a one-to-one wiring table describing connection conditions when the input / output relationship is one-to-one, and input / output. Two types of tables, the general wiring table that describes the connection conditions when the relationship is other than one-to-one, are provided, and 1-byte data is assigned to each of the input data and the operator data description for the general wiring table. An integrated wiring system characterized in that the input data and the operator data are distinguished by the most significant bit of each byte.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61214030A JPH063918B2 (en) | 1986-09-12 | 1986-09-12 | Integrated wiring system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61214030A JPH063918B2 (en) | 1986-09-12 | 1986-09-12 | Integrated wiring system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6370337A JPS6370337A (en) | 1988-03-30 |
| JPH063918B2 true JPH063918B2 (en) | 1994-01-12 |
Family
ID=16649113
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP61214030A Expired - Lifetime JPH063918B2 (en) | 1986-09-12 | 1986-09-12 | Integrated wiring system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH063918B2 (en) |
Family Cites Families (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS49122941A (en) * | 1973-03-26 | 1974-11-25 | ||
| JPS5332218A (en) * | 1976-09-08 | 1978-03-27 | Kawasaki Heavy Ind Ltd | Fuel supply control means for gas turbine |
| JPS57203336A (en) * | 1981-06-08 | 1982-12-13 | Mitsubishi Electric Corp | Logical circuit element |
| JPS593688A (en) * | 1982-06-30 | 1984-01-10 | Fujitsu Ltd | Normalizing and converting device of equation in equation processing system |
| JPS59201143A (en) * | 1983-04-28 | 1984-11-14 | Hitachi Ltd | Decision for selection and connection of electronic parts |
| JPS6073731A (en) * | 1983-09-29 | 1985-04-25 | Fujitsu Ltd | Processing system of logical operator |
| JPS61120976A (en) * | 1984-11-19 | 1986-06-09 | Hitachi Ltd | Simulation of logical circuit |
| JPH0724075B2 (en) * | 1985-03-14 | 1995-03-15 | 東芝機械株式会社 | Shape data storage / processing method in CAD / CAM system |
-
1986
- 1986-09-12 JP JP61214030A patent/JPH063918B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6370337A (en) | 1988-03-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5287353A (en) | Apparatus for generating and sending a serial data packet for controlling a network of single point I/O devices | |
| EP1014271B1 (en) | Bus controller and bus control system | |
| US5311508A (en) | Apparatus for receiving and decoding a serial data packet containing the status of a network of single point I/O devices | |
| JP2000013414A (en) | In-device monitoring and control system | |
| JPS5947905B2 (en) | Information transmission method using a common transmission path | |
| CN113075904A (en) | PLC extension system, PLC system communication method and storage medium | |
| JPH03104459A (en) | Data communication equipment | |
| JPH063918B2 (en) | Integrated wiring system | |
| US5636343A (en) | Microcomputer with built-in serial input-output circuit and collision detection circuit responsive to common input-output line being occupied | |
| US5400332A (en) | Communication system between communication cards mounted separately in shelves | |
| US6349389B1 (en) | Communication control system and apparatus | |
| JPH11215834A (en) | Optional communication device for inverter device and communication system using the same | |
| JPH07200010A (en) | Programmable controller and exclusive control communication method thereof | |
| JPH08316973A (en) | Communication processing means | |
| JP2502491B2 (en) | Communication processing circuit | |
| JPS599305Y2 (en) | Multiple serial input interface | |
| JPS62232292A (en) | Data transmission system | |
| KR100342004B1 (en) | Bus controller and bus control system | |
| CN118138138B (en) | PCIE bus-based remote transmission method and system | |
| JPS6261961B2 (en) | ||
| JPH06209319A (en) | Network connection device | |
| JPS62198544A (en) | Wiring logic description method for aggregated wiring systems | |
| JPH055439B2 (en) | ||
| JP2767473B2 (en) | Loom data transmission system | |
| JPH0898275A (en) | Communication method for multiplex transmission system |