JPH0374557B2 - - Google Patents

Info

Publication number
JPH0374557B2
JPH0374557B2 JP58008264A JP826483A JPH0374557B2 JP H0374557 B2 JPH0374557 B2 JP H0374557B2 JP 58008264 A JP58008264 A JP 58008264A JP 826483 A JP826483 A JP 826483A JP H0374557 B2 JPH0374557 B2 JP H0374557B2
Authority
JP
Japan
Prior art keywords
terminal
data
control unit
terminal control
mpu
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
Application number
JP58008264A
Other languages
Japanese (ja)
Other versions
JPS59133796A (en
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 filed Critical
Priority to JP58008264A priority Critical patent/JPS59133796A/en
Publication of JPS59133796A publication Critical patent/JPS59133796A/en
Publication of JPH0374557B2 publication Critical patent/JPH0374557B2/ja
Granted legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R16/00Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
    • B60R16/02Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
    • B60R16/03Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements for supply of electrical power to vehicle subsystems or for
    • B60R16/0315Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements for supply of electrical power to vehicle subsystems or for using multiplexing techniques

Description

【発明の詳細な説明】 この発明は、自動車の集約配線システムにおけ
る異常検出装置に関し、特にたとえば自動車の各
所に設けられたランプ類や各種センサなどの制御
対象を制御する場合に発生する異常を検出する装
置に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an abnormality detection device in an automobile integrated wiring system, and in particular detects an abnormality that occurs when controlling objects to be controlled such as lamps and various sensors installed in various parts of an automobile. related to a device for

最近、自動車に装備されたランプ類や各種セン
サなどの制御対象の増加に伴い、電気配線が複雑
となり、配線作業が困難化し、誤配線を生じやす
く、使用電線量が増加して高価になるという問題
点がある。この問題点を解消するために、次のよ
うなことが考えられる。
Recently, with the increase in the number of control objects such as lamps and various sensors installed in automobiles, electrical wiring has become complicated, wiring work has become difficult, wiring errors are likely to occur, and the amount of electric wire used has increased, making it expensive. There is a problem. In order to solve this problem, the following can be considered.

すなわち、自動車に装備される複数の制御対象
を配設位置の近いものでグループ化し、各グルー
プに含まれる制御対象を対応する端末制御部によ
つて制御可能に構成する。そして、複数の端末制
御部に対して1つの中央制御部が設けられ、中央
制御部と各端末制御部とがデータ伝送ラインで接
続される。中央制御部は、各操作手段からの信号
や各端末制御部からのデータを基にして中央制御
部自身の負荷を制御したり、各端末制御部に制御
データを送信する。各端末制御部では、中央制御
部から与えられた制御データに基づいて、対応の
制御対象を駆動制御するとともに、自身に接続さ
れたセンサやスイツチ類からの信号をシリーズデ
ータとして中央制御部に送信する。
That is, a plurality of control objects installed in an automobile are grouped according to their installation positions, and the control objects included in each group are configured to be controllable by the corresponding terminal control unit. One central control section is provided for a plurality of terminal control sections, and the central control section and each terminal control section are connected by a data transmission line. The central control section controls its own load based on signals from each operating means and data from each terminal control section, and transmits control data to each terminal control section. Each terminal control unit drives and controls the corresponding control target based on the control data given from the central control unit, and also sends signals from the sensors and switches connected to itself to the central control unit as series data. do.

上述のような方法によれば、中央制御部と各端
末制御部との間はそれぞれ1本のデータ伝送ライ
ンに集約することができる。したがつて、配線作
業を簡単化できるとともに、使用電線量を少なく
して装置を安価に構成できる。
According to the method described above, it is possible to consolidate each data transmission line between the central control unit and each terminal control unit into one data transmission line. Therefore, the wiring work can be simplified, and the amount of electric wires used can be reduced, making it possible to construct the device at low cost.

ところで、或る端末制御部に異常が発生する
と、その端末制御部からのデータを基にした制御
やその端末制御部に対応する制御対象の正常な駆
動制御ができなくなる。このような場合、制御対
象の種類によつては、自動車の走行が極めて危険
な状態に陥る場合もある。たとえば、制御対象が
前照灯であれば夜間に走行ができず、方向指示器
であれば他の自動車に右折または左折することを
知らせることができないので、交通事故の原因と
なる。したがつて、中央制御部と各端末制御部と
で交信されるデータに誤りがないかを監視して、
端末制御部に異常がないかをチエツクすることが
重要になる。しかしながら、自動車にはエンジン
等のノイズ発生源が多く、これらのノイズが交信
データに混入して一時的にデータに誤りが生じる
場合がある。そのため、上述のような方法では、
頻繁に端末制御部の異常が検出され、円滑な走行
が望めない。
By the way, when an abnormality occurs in a certain terminal control section, control based on data from the terminal control section or normal drive control of the control object corresponding to the terminal control section becomes impossible. In such a case, depending on the type of object to be controlled, the driving of the vehicle may become extremely dangerous. For example, if the control target is a headlight, it is impossible to drive at night, and if the control target is a turn signal, it is not possible to notify other vehicles of a right or left turn, which can lead to traffic accidents. Therefore, the data exchanged between the central control unit and each terminal control unit is monitored for errors, and
It is important to check whether there is any abnormality in the terminal control unit. However, automobiles have many sources of noise, such as engines, and these noises may mix into communication data, causing temporary errors in the data. Therefore, in the method described above,
Abnormalities in the terminal control unit are frequently detected, making it impossible to expect smooth driving.

それゆえに、この発明の主たる目的は、ノイズ
混入による一時的なデータの誤りと端末制御部の
異常によるデータの誤りとを区別して検出できる
ような自動車の集約配線システムにおける異常検
出装置を提供することである。
Therefore, the main object of the present invention is to provide an abnormality detection device in an automobile integrated wiring system that can distinguish and detect temporary data errors due to noise contamination and data errors due to abnormalities in the terminal control unit. It is.

この発明は、要約すれば、中央制御部は端末制
御部から受信したデータを監視しその誤りを検出
するとともに、連続して何回誤りが検出されたか
を各端末制御部別に計数し、或る端末制御部に対
する計数結果が所定回数を越えれば、その端末制
御部を中央制御部の制御対象から切り離すように
したものである。
In summary, the present invention includes: a central control unit monitors data received from a terminal control unit, detects errors therein, counts how many times an error is detected consecutively for each terminal control unit, and If the count result for a terminal control unit exceeds a predetermined number of times, that terminal control unit is separated from the control target of the central control unit.

以下に、図面を参照してこの発明の具体的な実
施例について説明する。
Hereinafter, specific embodiments of the present invention will be described with reference to the drawings.

第1図はこの発明が適用される自動車の集約配
線システムの概略を示すブロツク図である。構成
において、たとえばダツシユボードの下等に中央
制御部の一例のマスタプロセツサ(以下マスタ
MPU)10が設けられる。マスタMPU10に
は、蓄電池1から直流電圧が供給される。この実
施例では、マスタMPU10自身も端末としての
機能を有しており、主として自動車中央部に位置
する操作手段2Aや制御対象2Bが接続される。
操作手段2Aは、たとえばインストルメントパネ
ルまたはハンドルに関連して設けられる各種の操
作スイツチを含む。また、MPU10には、照光
式押しボタンスイツチ3Aないし3Dが接続され
る。これらスイツチ3Aないし3Dは、それぞ
れ、後述する端末MPU20Aないし20Dに対
応し、その点灯によつて対応の端末MPUに異常
が発生したことを表示する。そして、点灯状態と
なつているスイツチは押圧されることによつて消
灯状態となる。
FIG. 1 is a block diagram schematically showing an integrated wiring system for an automobile to which the present invention is applied. In the configuration, for example, a master processor (hereinafter referred to as master
MPU) 10 is provided. A DC voltage is supplied to the master MPU 10 from the storage battery 1. In this embodiment, the master MPU 10 itself also has a function as a terminal, and is connected mainly to an operating means 2A and a controlled object 2B located in the center of the vehicle.
The operating means 2A includes various operating switches provided, for example, in relation to an instrument panel or a steering wheel. Further, illuminated push button switches 3A to 3D are connected to the MPU 10. These switches 3A to 3D correspond to terminal MPUs 20A to 20D, which will be described later, respectively, and their lighting indicates that an abnormality has occurred in the corresponding terminal MPU. The switch that is in the lit state is turned off by being pressed.

さらに、マスタMPU10には、自動車の適宜
の箇所に設けられた端末制御部の一例の端末プロ
セツサ(以下端末MPU)20A〜20Dがケー
ブル30A〜30Dを介して接続される。各端末
MPU20A〜20Dには、複数の制御対象およ
び/または検出対象(以下これらを総称する場合
は制御対象群という)40A〜40Dが接続され
る。ここで、制御対象とは、後述の第2A図〜第
2D図を参照して説明するように、各種のランプ
やワイパなどの自動車に装備される電装部品をい
う。検出対象とは、各種のセンサ類であつて、自
動車のインストルメントパネルに含まれる各種指
示器の指示対象となるものを検出するものであ
る。これらの制御対象群40A〜40Dは、複数
の制御対象を配置位置の近いものでグループ化し
たものであつて、各グループに対応する端末
MPU20A〜20Dによつて制御されるもので
ある。ここで、図示では、端末MPUが4個の場
合を示しているが、これは自動車の前後および左
右に各種制御対象を分けてグループ化した場合を
表わすためである。その目的は、制御対象群40
Aは自動車の前左側部分に設けられる各種制御対
象を含み、端末MPU20Aは自動車の前左側部
分に近い位置に設けられる。同様にして、制御対
象群40B,40Cおよび40Dは自動車の前右
側部分、後左側部分および後右側部分にそれぞれ
関連的に設けられ、それに対応して端末MPU2
0B,20Cおよび20Dが設けられる。
Furthermore, terminal processors (hereinafter referred to as terminal MPUs) 20A to 20D, which are examples of terminal control units provided at appropriate locations in the automobile, are connected to the master MPU 10 via cables 30A to 30D. Each terminal
A plurality of control objects and/or detection objects (hereinafter collectively referred to as a group of control objects) 40A to 40D are connected to the MPUs 20A to 20D. Here, the controlled object refers to electrical components such as various lamps and wipers that are installed in an automobile, as will be explained with reference to FIGS. 2A to 2D, which will be described later. Detection targets are various sensors that detect objects that are indicated by various indicators included in the instrument panel of an automobile. These control object groups 40A to 40D are a plurality of control objects grouped according to their arrangement positions, and terminals corresponding to each group.
It is controlled by the MPUs 20A to 20D. Here, although the illustration shows a case where there are four terminal MPUs, this is to represent a case where various control objects are divided and grouped on the front, rear, left and right sides of the automobile. The purpose is to
A includes various control objects provided on the front left side of the automobile, and the terminal MPU 20A is provided at a position close to the front left side of the automobile. Similarly, control object groups 40B, 40C, and 40D are provided in relation to the front right part, the rear left part, and the rear right part of the automobile, respectively, and the terminal MPU2 corresponds to the control object groups 40B, 40C, and 40D.
0B, 20C and 20D are provided.

第2A図〜第2D図は各端末MPU20A〜2
0Dの出力端子または入力端子に関連的に接続さ
れる制御対象または検出対象の一例を図解的に示
した図である。したがつて、各出力端子には、図
示している各種の制御対象の信号線またはこれら
の制御対象を動作状態にさせるためのスイツチが
関連的に接続されるものである。図示から明らか
なように、各端末MPU20A〜20Dの出力端
子および入力端子は、それぞれ一定ビツト数(た
とえば8ビツト)からなり、1つのビツトから出
力される論理状態によつて制御対象の動作状態を
制御するものである。なお、第2B図および第2
C図に示すように、端末MPU20B,20Cの
それぞれに入力されるデータは、検出対象の一例
の水温を検出するためのセンサまたはガソリン量
を検出するためのセンサによつて検出された値で
ある。
Figures 2A to 2D show each terminal MPU20A to 2.
FIG. 2 is a diagram schematically showing an example of a controlled object or a detected object connected to an output terminal or an input terminal of 0D. Therefore, each output terminal is connected to a signal line for the various control objects shown in the figure or a switch for activating these control objects. As is clear from the illustration, the output terminal and input terminal of each terminal MPU 20A to 20D each consist of a fixed number of bits (for example, 8 bits), and the operating state of the controlled object is determined by the logic state output from one bit. It is something to control. In addition, Figure 2B and Figure 2
As shown in Figure C, the data input to each of the terminal MPUs 20B and 20C is a value detected by a sensor for detecting the water temperature or a sensor for detecting the amount of gasoline, which is an example of the detection target. .

さらに、第2A図〜第2D図では図示を省略し
ているが、各端末MPU20A〜20Dのそれぞ
れには各制御対象の通電信号が入力される。
Further, although not shown in FIGS. 2A to 2D, energization signals for each controlled object are input to each of the terminal MPUs 20A to 20D, respectively.

また、第2E図はマスタMPU10の各端子に
対する操作手段や制御対象の接続態様を示すもの
である。図示のように操作手段の数が1バイト
(たとえば8ビツト)よりも多い場合であれば、
複数バイトですべての操作手段の出力を入力とし
て受ける。
Further, FIG. 2E shows the manner in which operating means and controlled objects are connected to each terminal of the master MPU 10. If the number of operating means is more than 1 byte (e.g. 8 bits) as shown in the figure,
Receives the output of all operation means as input in multiple bytes.

これらの各端末MPU20A〜20Dおよびマ
スタMPU10に接続される制御対象および検出
対象の種類は、一例を示したのにすぎず、自動車
の機種や車種によつて異なるものである。
The types of objects to be controlled and objects to be detected connected to each of these terminal MPUs 20A to 20D and the master MPU 10 are merely examples, and differ depending on the model and type of vehicle.

第3図はケーブル30A〜30Dの具体的な構
成を示す断面図である。ケーブル30A〜30D
は、その中心部にパワーライン31を含む。パワ
ーライン31の周囲部分には、1組のシステム電
源用ライン32および1組の光フアイバ331,
332を含むデータ伝送ライン33が配置され
る。各ラインまたは光フアイバの周囲部分が絶縁
物34で被覆される。
FIG. 3 is a sectional view showing the specific structure of cables 30A to 30D. Cable 30A~30D
includes a power line 31 in its center. Around the power line 31, a set of system power supply lines 32 and a set of optical fibers 331,
A data transmission line 33 including 332 is arranged. The peripheral portion of each line or optical fiber is coated with an insulator 34.

第4図はこの発明の特徴となる集約配線システ
ムの一実施例の具体的な回路図である。なお、図
示の実施例では、マスタMPU10と1つの端末
MPU(たとえば20A)との関係を示す。
FIG. 4 is a specific circuit diagram of an embodiment of the integrated wiring system which is a feature of the present invention. In addition, in the illustrated embodiment, the master MPU 10 and one terminal
The relationship with MPU (for example, 20A) is shown.

構成において、マスタMPU10は、中央処理
装置(以下CPU)11を含む。CPU11には、
バスライン12を介してプログラムおよびデータ
テーブル記憶用メモリ(以下ROM)13、デー
タ記憶用メモリ(以下RAM)14、伝送制御回
路15、入出力インタフエース16およびインタ
フエース18が接続される。CPU11には、図
示を省略しているが、レジスタJ,K,Iが含ま
れる。また、インタフエース18には、各端末シ
ステム電源回路のオンオフを制御するための電源
制御回路18が接続される。入出力インタフエー
ス16には、各端末MPU20A〜20Dに対応
する複数の制御対象の動作状態を選択するための
操作手段2Aおよび制御対象2Bとして動作状態
を指示するための各種インジケータが接続され
る。操作手段2Aには、複数の操作スイツチ2a
〜2nが含まれる。伝送制御回路15には、各ケ
ーブル30A〜30D(図示では30Aのみを示
す)に含まれる1対の光フアイバ331,332
に対応して、送信バツフアアンプ51a〜51d
および受信バツフアアンプ58a〜58dが接続
される。さらに、マスタMPU10はシステム電
源回路17を含む。このシステムは電源回路は蓄
電池1から電力を供給される。
In the configuration, the master MPU 10 includes a central processing unit (hereinafter referred to as CPU) 11. CPU11 has
A program and data table storage memory (hereinafter referred to as ROM) 13, a data storage memory (hereinafter referred to as RAM) 14, a transmission control circuit 15, an input/output interface 16, and an interface 18 are connected via the bus line 12. Although not shown, the CPU 11 includes registers J, K, and I. Further, a power supply control circuit 18 for controlling on/off of each terminal system power supply circuit is connected to the interface 18 . Connected to the input/output interface 16 are operating means 2A for selecting the operating states of a plurality of controlled objects corresponding to each terminal MPU 20A to 20D, and various indicators for indicating the operating states as the controlled objects 2B. The operation means 2A includes a plurality of operation switches 2a.
~2n is included. The transmission control circuit 15 includes a pair of optical fibers 331 and 332 included in each cable 30A to 30D (only 30A is shown in the figure).
Transmission buffer amplifiers 51a to 51d correspond to
and receiving buffer amplifiers 58a to 58d are connected. Furthermore, master MPU 10 includes a system power supply circuit 17. In this system, the power supply circuit is supplied with power from a storage battery 1.

端末MPU(たとえば20A)は、CPU21を
含み、バスライン22を介してCPU21に接続
されるROM23,ROM24、伝送制御回路2
5および入出力インタフエース26を含む。さら
に、端末MPU20Aは、各部に電力を供給する
ためのシステム電源回路27を含む。伝送制御回
路25には、受信バツフアアンプ54aおよび送
信バツフアアンプ55aが接続される。送信バツ
フアアンプ51aと受信バツフアアンプ54aと
は、光結合器52a、光フアイバ331および光
結合器53aを介して接続される。送信バツフア
55aと受信バツフア58aとは、光結合器56
a、光フアイバ332、光結合器57aを介して
接続される。システム電源回路27は、システム
電源ライン32を介して蓄電池1に接続される。
The terminal MPU (for example, 20A) includes a CPU 21, a ROM 23 and a ROM 24 connected to the CPU 21 via a bus line 22, and a transmission control circuit 2.
5 and an input/output interface 26. Furthermore, the terminal MPU 20A includes a system power supply circuit 27 for supplying power to each section. A reception buffer amplifier 54a and a transmission buffer amplifier 55a are connected to the transmission control circuit 25. The transmitting buffer amplifier 51a and the receiving buffer amplifier 54a are connected via an optical coupler 52a, an optical fiber 331, and an optical coupler 53a. The transmitting buffer 55a and the receiving buffer 58a are connected to an optical coupler 56.
a, an optical fiber 332, and an optical coupler 57a. System power supply circuit 27 is connected to storage battery 1 via system power supply line 32 .

制御対象群40Aに含まれる複数の制御対象、
たとえば前照灯(Hビーム)410とワイパ41
5に関連して、駆動回路が設けられる。この駆動
回路には、前照灯410に直列接続されるパワー
スイツチ430およびダイオード440と、ワイ
パ415に直列接続されるパワースイツチ435
およびダイオード445などが含まれる。これら
のパワースイツチ430…435は、パワーライ
ン31を介して蓄電池1の+極端子に接続され
る。CPU21の出力で各パワースイツチ430
…435を選択的にオンまたはオフ動作させるた
めに、ドライバ42が設けられる。
A plurality of controlled objects included in the controlled object group 40A,
For example, headlight (H beam) 410 and wiper 41
In connection with 5, a drive circuit is provided. This drive circuit includes a power switch 430 and a diode 440 connected in series to the headlamp 410, and a power switch 435 connected in series to the wiper 415.
and a diode 445. These power switches 430...435 are connected to the positive terminal of the storage battery 1 via the power line 31. Each power switch 430 is controlled by the output of CPU21.
... 435 is selectively turned on or off, a driver 42 is provided.

なお、その他の端末MPU20B〜20Dは、
20Aと同様に回路構成され、接続される制御対
象群が異なるのみであるので、その詳細な構成を
省略する。
In addition, other terminals MPU20B to 20D are
The circuit configuration is the same as that of 20A, and the only difference is the group of controlled objects to be connected, so the detailed configuration will be omitted.

第5図はマスタMPU10に含まれるROM1
3の記憶内容を図解的に示した図である。なお、
図示では、操作手段2Aに含まれる各操作スイツ
チの番号別に制御対象を対応させて示す。ROM
13は、各操作スイツチに対して4バイトの記憶
エリアを有し、各バイトとも上位3ビツトでその
制御対象のグループに対応する端末番号を示し、
後続の3ビツトで動作すべき負荷番号を表わす。
なお、残りの2ビツト(下位2ビツト)は、この
実施例では1つの端末MPUに設けられる負荷の
数が16以内の場合を想定しているので使用されな
いが、端末MPUの数および負荷の数が多くなつ
た場合に使用される。
Figure 5 shows ROM1 included in master MPU10.
3 is a diagram schematically showing the storage contents of No. 3. FIG. In addition,
In the illustration, the controlled objects are shown in correspondence with each operating switch number included in the operating means 2A. ROM
13 has a 4-byte storage area for each operation switch, and the upper 3 bits of each byte indicate the terminal number corresponding to the group to be controlled.
The following 3 bits represent the load number to be operated on.
Note that the remaining 2 bits (lower 2 bits) are not used in this embodiment because it is assumed that the number of loads installed on one terminal MPU is 16 or less, but the number of terminal MPUs and the number of loads Used when there are too many.

たとえば、マスタMPU10の入力端子(IN)
の0番に接続されている前照灯(ヘツドランプ)
のハイビームスイツチに対応する負荷は、端末
MPU20A(端末番号を示せばRS#0)の負荷
番号0、端末MPU20B(RS#1)の負荷番号
0、端末MPU20C(RS#3)の負荷番号4、
マスタMPU10(MS#4)の負荷番号0であ
ることを示している。また、ROM13の各1バ
イトの記憶エリアをテーブルと考えたとき、図示
では各テーブルがM(J,I)で示される。ただ
し、Jは1つの操作スイツチに対応する記憶エリ
アの何バイト目(0〜3)かを意味し、Iは操作
スイツチの番号(0〜15)を意味する。
For example, the input terminal (IN) of master MPU10
Headlamp connected to number 0 of
The load corresponding to the high beam switch is
Load number 0 of MPU20A (RS#0 if terminal number is shown), load number 0 of terminal MPU20B (RS#1), load number 4 of terminal MPU20C (RS#3),
This indicates that the load number of the master MPU 10 (MS#4) is 0. Further, when each 1-byte storage area of the ROM 13 is considered as a table, each table is indicated by M(J, I) in the illustration. However, J means the number of bytes (0 to 3) in the storage area corresponding to one operation switch, and I means the number (0 to 15) of the operation switch.

なお、端末制御部は、マスタMPU10を含め
ると5個あることになるが、負荷を5個以上持つ
ているスイツチがある場合には1つの負荷につき
5バイト以上のエリアが必要とされる。
Note that there are five terminal control units including the master MPU 10, but if there is a switch that has five or more loads, an area of five bytes or more is required for each load.

第6図はマスタMPU10に含まれるRAM1
4の記憶領域を図解的に示した図である。図にお
いて、RAM14は、記憶領域MSW,MOUTお
よびMRCVを含む。ここで、記憶領域MSWは、
マスタMPU10に接続される操作スイツチが16
個であれば16バイトの記憶エリアSW0〜SW15
含み、オン状態にされた操作スイツチの番号
(#0〜#15)を上位のエリアから順次書込んで
記憶する。記憶領域MOUTは、各端末MPU20
A〜20D(RS#0〜RS#3)およびマスタ
MPU10(MS)に対して1バイトづつのエリ
アMOUT0〜MOUT4を含み、各1バイトの複数
(図示では8)ビツトで駆動すべき負荷の番号を
記憶する。記憶領域MRCVは、各端末MPU20
A〜20D(RS#0〜#3)に対して1バイトづ
つのエリアMRCV0〜MRCV3を含み、それぞれ
のエリアへ対応する端末MPUから送信された受
信データを記憶する。
Figure 6 shows RAM 1 included in master MPU 10.
FIG. 4 is a diagram schematically showing a storage area of No. 4; In the figure, RAM 14 includes storage areas MSW, MOUT, and MRCV. Here, the storage area MSW is
There are 16 operation switches connected to the master MPU10.
If the number is 16 bytes, it includes a 16-byte storage area SW 0 to SW 15 , and the numbers (#0 to #15) of the operation switches turned on are sequentially written and stored from the upper area. Storage area MOUT is each terminal MPU20
A to 20D (RS#0 to RS#3) and master
It includes areas MOUT 0 to MOUT 4 of 1 byte each for the MPU 10 (MS), and stores the number of the load to be driven using multiple (8 in the figure) bits of each 1 byte. Storage area MRCV is each terminal MPU20
It includes areas MRCV 0 to MRCV 3 of 1 byte each for A to 20D (RS #0 to #3), and stores received data transmitted from the terminal MPU corresponding to each area.

さらに、RAM14は、記憶領域D,N,MA
およびMBを含む。ここで、記憶領域Dは、各端
末MPU20A〜20D(RS#0〜RS#3)に対
して1バイトずつのエリアD0〜D3を含む。これ
らエリアD0〜D3には、対応の端末MPUが異常と
判定されたときその端末番号が登録される。記憶
領域Nは、各端末MPU20A〜20D(RS#0
〜#3)に対して1バイトずつのエリアN0〜N3
を含む。これらエリアN0〜N3は、対応する端末
MPUからの受信データに連続して何回誤りがあ
つたかを計数するカウンタとして用いられる。記
憶領域MAは、各端末MPU20A〜20D(RS
#0〜#3)に対して1バイトずつのエリア
MA0〜MA3を含み、それぞれのエリアへ対応す
る端末MPUから送信された受信データを一時記
憶する。記憶領域MBは、各端末MPU20A〜
20D(RS#0〜#3)に対して1バイトずつの
エリアMB0〜MB3を含み、それぞれのエリアへ
対応する端末MPUからの受信データを一時記憶
する。
Furthermore, the RAM 14 has storage areas D, N, MA
and MB included. Here, the storage area D includes areas D 0 to D 3 of 1 byte each for each terminal MPU 20A to 20D (RS#0 to RS#3). In these areas D0 to D3 , when the corresponding terminal MPU is determined to be abnormal, its terminal number is registered. The storage area N is for each terminal MPU20A to 20D (RS#0
~ #3) Area N 0 ~ N 3 of 1 byte each
including. These areas N 0 to N 3 are the corresponding terminals
It is used as a counter to count the number of consecutive errors in the received data from the MPU. The storage area MA is each terminal MPU20A to 20D (RS
1 byte area for each (#0 to #3)
It includes MA 0 to MA 3 , and temporarily stores the received data transmitted from the terminal MPU corresponding to each area. Storage area MB is each terminal MPU20A ~
20D (RS #0 to #3) includes areas MB 0 to MB 3 of 1 byte each, and the received data from the terminal MPU corresponding to each area is temporarily stored.

第7図はこの発明の一実施例の集約配線システ
ムの動作を説明するためのタイムチヤートであ
る。第7図を参照して、この実施例の動作説明に
先立ち、概略を説明する。マスタMPU10から
は、各端末MPU20A〜20Dを順次指定する
ための1フレームデータが送信される。この1フ
レームデータには、送信先データSDA、送信元
データSSD、制御データおよびBCCコードが含
まれる。制御データは、送信先の端末MPUに対
応する各負荷(制御対象)を駆動制御するための
データであつて、たとえば1バイトデータであ
る。BCCコードは、誤り制御のために用いられ
るものであつて、たとえば垂直・水平パリテイチ
エツクコードなどが用いられる。各端末MPU2
0A〜20Dは、マスタMPU10からの1フレ
ームデータを受信して、その送信先データが自己
を指定するものであれば、制御データに基づいて
対応の負荷を駆動する。
FIG. 7 is a time chart for explaining the operation of an integrated wiring system according to an embodiment of the present invention. Prior to explaining the operation of this embodiment, an outline will be explained with reference to FIG. 7. The master MPU 10 transmits one frame of data for sequentially specifying each terminal MPU 20A to 20D. This one frame data includes destination data SDA, source data SSD, control data, and BCC code. The control data is data for driving and controlling each load (control target) corresponding to the destination terminal MPU, and is, for example, 1-byte data. The BCC code is used for error control, and for example, a vertical/horizontal parity check code is used. Each terminal MPU2
0A to 20D receive one frame of data from the master MPU 10, and if the destination data specifies itself, drive the corresponding load based on the control data.

マスタMPU10は、接続されてる複数(実施
例では4個)の端末MPU20A〜20Dに順次
1フレームのデータを送信した後、各端末MPU
20A〜20Dを順次指定して動作状態検出デー
タを送信指令するためのポーリング信号を導出す
る。各端末MPU20A〜20Dは、ポーリング
信号が自己を指定するものであるとき、動作状態
検出データを含む1フレームデータをそれぞれマ
スタMPU10へ送信する。
After the master MPU 10 sequentially transmits one frame of data to a plurality of connected terminal MPUs 20A to 20D (four in the embodiment), the master MPU 10 transmits data to each terminal MPU
A polling signal for sequentially designating 20A to 20D and instructing to transmit operating state detection data is derived. Each of the terminal MPUs 20A to 20D transmits one frame of data including operating state detection data to the master MPU 10 when the polling signal designates itself.

第8図、第9図および第10図はこの発明の一
実施例の動作を説明するためのフローチヤートで
あり、特に第8図および第9図はマスタ側の動作
フローを示し、第10図は端末側の動作フローを
示す。なお、第9図は第8図に示すステツプ(図
示ではSと略す)33のサブルーチンの詳細を示
す動作フローである。
8, 9, and 10 are flowcharts for explaining the operation of an embodiment of the present invention. In particular, FIGS. 8 and 9 show the operation flow on the master side, and FIG. shows the operation flow on the terminal side. Incidentally, FIG. 9 is an operational flow showing details of the subroutine of step (abbreviated as S in the figure) 33 shown in FIG.

次に、第1図ないし第10図を参照して、この
実施例の具体的な動作を説明する。
Next, the specific operation of this embodiment will be explained with reference to FIGS. 1 to 10.

RAM14の初期設定処理動作 まず、ステツプ10において、RAM14の
エリアD0〜D3に16進表示で「FF」のデータ
(すなわち8ビツトのすべてに論理「1」)が書
込まれる。また、エリアN0〜N3、エリアMA0
〜MA3およびエリアMB0〜MB3に16進表示で
「00」のデータ(すなわち8ビツトのすべてに
論理「0」)が書込まれる。続いて、ステツプ
11において、RAM14のエリアMSW0
MSW15に16進表示で「FF」のデータが書込ま
れる。また、エリアMOUT0〜MOUT4に16進
表示で「00」のデータが書込まれる。
Initial setting processing operation of RAM 14 First, in step 10, data of "FF" (ie, logic "1" in all 8 bits) is written in hexadecimal notation into areas D 0 to D 3 of RAM 14 . Also, area N 0 to N 3 , area MA 0
~ MA3 and areas MB0 ~ MB3 are written with data ``00'' in hexadecimal notation (that is, logic ``0'' in all 8 bits). Next, in step 11, areas MSW 0 to
"FF" data is written to MSW 15 in hexadecimal format. Furthermore, data "00" is written in hexadecimal representation in areas MOUT 0 to MOUT 4 .

オン状態の操作スイツチ番号の登録動作 ステツプ12〜16では、操作手段2Aに含
まれる各種の操作スイツチ(SW0〜SW15)
のうちオン状態になつている操作スイツチの番
号を記憶領域MSWの各エリアへ登録する動作
が行なわれる。すなわち、ステツプ12におい
て、CPU11に含まれるレジスタKおよびレ
ジスタJに0が設定される。ステツプ13にお
いて、レジスタKにストアされている値に対応
する操作スイツチ(最初はSWO)がオン状態
か否かが判断される。もし、そのスイツチのオ
ン状態が判断されると、ステツプ14に進み、
レジスタJの値(最初は0)に対応するエリア
MSWJへレジスタKの内容が書込まれる。これ
によつて、オン状態のスイツチの番号が登録さ
れる。これと同時に、レジスタJの値が1だけ
歩進される。ステツプ15において、レジスタ
Kの値が1だけ歩進される。ステツプ16にお
いて、レジスタKの値が操作スイツチの全個数
(たとえば16)になつたか否かが判断される。
全個数でないことが判断されると、すべての操
作スイツチ(SW0〜SW15)についてオン
状態か否かの判断動作を終了していないことが
判断されて、ステツプ13へ戻る。なお、ステ
ツプ13において、レジスタKの値で指定され
る操作スイツチがオン状態でないこと(オフ状
態であること)が判断されると、ステツプ14
の処理を行なうことなくステツプ15へ進む。
このようにして、操作手段2Aに含まれるすべ
ての操作スイツチのオン状態か否かの判断動作
が終了するまで、ステツプ13〜16の動作が
繰返される。
Operation of registering operation switch numbers in the on state In steps 12 to 16, various operation switches (SW0 to SW15) included in the operation means 2A are registered.
An operation is performed in which the numbers of the operating switches that are in the on state are registered in each area of the storage area MSW. That is, in step 12, 0 is set in register K and register J included in the CPU 11. In step 13, it is determined whether the operating switch (initially SWO) corresponding to the value stored in register K is in the on state. If it is determined that the switch is on, proceed to step 14;
Area corresponding to the value of register J (initially 0)
The contents of register K are written to MSW J. As a result, the number of the switch in the on state is registered. At the same time, the value of register J is incremented by one. In step 15, the value of register K is incremented by one. In step 16, it is determined whether the value of register K has reached the total number of operation switches (for example, 16).
If it is determined that the number is not all, it is determined that the operation of determining whether or not all the operation switches (SW0 to SW15) are in the on state has not been completed, and the process returns to step 13. Note that if it is determined in step 13 that the operation switch specified by the value of register K is not in the on state (off state), the process proceeds to step 14.
The process proceeds to step 15 without performing the above process.
In this way, the operations of steps 13 to 16 are repeated until the operation of determining whether all the operation switches included in the operation means 2A are in the on state is completed.

そして、ステツプ16においてレジスタKの
値が操作スイツチの全個数に達したことが判断
されると、ステツプ17へ進む。ステツプ17
〜26では、オン状態の操作スイツチの番号
と、ROM13に設定されている各操作スイツ
チ別の端末番号および負荷番号とに基づいて、
制御すべき負荷番号が決定される。より具体的
には、ステツプ17において、レジスタKに0
が設定される。ステツプ18において、レジス
タJに0が設定される。ステツプ19におい
て、レジスタKの値に対応するエリアMSWK
の内容(すなわち操作スイツチの番号)がレジ
スタIにストアされる。たとえば、操作スイツ
チの番号が0であれば、エリアMSW0の内容が
レジスタIにストアされる。ステツプ20にお
いて、レジスタIの内容が16進表示で「FF」
か否かが判断される。換言すれば、記憶領域
MSWの最初のエリアMSW0の記憶内容が、初
期設定されたままのデータか否かが判断され
る。複数の操作スイツチ(SW0〜SW15)
のうちいずれか1つでもオン状態であれば、そ
の操作スイツチの番号がエリアMSWKに記憶
されているので、レジスタIの内容が「「FF」
でないことが判断されて、ステツプ21へ進
む。
When it is determined in step 16 that the value of register K has reached the total number of operation switches, the process proceeds to step 17. Step 17
- 26, based on the number of the operation switch in the on state and the terminal number and load number for each operation switch set in the ROM 13,
A load number to be controlled is determined. More specifically, in step 17, register K is set to 0.
is set. At step 18, register J is set to 0. In step 19, the area MSW K corresponding to the value of register K is
The contents of (ie, the number of the operating switch) are stored in register I. For example, if the operating switch number is 0, the contents of area MSW 0 are stored in register I. In step 20, the contents of register I are displayed as "FF" in hexadecimal.
It is determined whether or not. In other words, the storage area
It is determined whether the stored contents of the first area MSW 0 of MSW are the data as initialized. Multiple operation switches (SW0 to SW15)
If any one of these is on, the number of that operation switch is stored in area MSW K , so the contents of register I will be "FF".
It is determined that this is not the case, and the process proceeds to step 21.

オンさせるべき負荷番号の決定動作 ステツプ21〜24では、レジスタIにスト
アされている操作スイツチの番号に対応する4
バイトの各データが「FF」か否かが判断され
る。すなわち、ステツプ21において、ROM
13のテーブルM(J,I)で指定される1バ
イトのデータ(但しIの値は操作スイツチの番
号に対応し、Jの値はその操作スイツチに相当
するデータのうちの何バイト目かに対応する)
が読出され、そのデータが「FF」か否かが判
断される。もし、M(J,I)のテーブルのデ
ータが「FF」でなければ、駆動すべき負荷が
存在するので、ステツプ22へ進む。ステツプ
22において、ROM13のテーブルM(J,
I)のデータ、たとえばM(0,0)であれば
端末MPU20A(RS#0)の負荷0をオンさ
せるためのデータが読出され、エリアMOUT0
に書込まれる。ステツプ23において、レジス
タJの内容に1が増加される。この状態では、
ROM13の次に読出すべきテーブルがM(1,
0)となる。ステツプ24において、レジスタ
Jの値が4か否かが判断される。J=4でない
ことが判断されると、ステツプ21へ戻る。そ
して、操作スイツチ(SWO)に対応する4バ
イトのテーブルのデータのうちのいずれかが
「FF」になるまで、またはJの値が4になるま
でステツプ21〜24の動作が繰返される。
Steps 21 to 24 determine the load number to be turned on.
It is determined whether each byte of data is "FF" or not. That is, in step 21, the ROM
1 byte of data specified in table M(J, I) in Table 13 (however, the value of I corresponds to the number of the operation switch, and the value of J corresponds to the number of bytes of data corresponding to that operation switch). handle)
is read out, and it is determined whether the data is "FF" or not. If the data in the table M(J,I) is not "FF", there is a load to be driven, and the process advances to step 22. In step 22, table M(J,
I) data, for example, M(0,0), the data for turning on load 0 of the terminal MPU20A (RS#0) is read out, and the data is read out from the area MOUT 0.
written to. In step 23, the contents of register J are incremented by one. In this state,
The table to be read next from ROM13 is M(1,
0). In step 24, it is determined whether the value of register J is 4 or not. If it is determined that J is not 4, the process returns to step 21. Then, the operations of steps 21 to 24 are repeated until any of the data in the 4-byte table corresponding to the operation switch (SWO) becomes "FF" or until the value of J becomes 4.

続いて、ステツプ25において、レジスタK
の値に1が加算される。ステツプ26におい
て、レジスタKの内容が操作スイツチの全個数
(たとえば16)か否かが判断され、全個数でな
いことが判断されるとステツプ18へ戻る。そ
して、エリアMSW0〜MSW15のすべてにオン
状態の操作スイツチの番号が記憶されていれ
ば、ステツプ18〜26の動作が操作スイツチ
のオン状態の数に相当する回数だけ繰返され
る。
Subsequently, in step 25, register K
1 is added to the value. In step 26, it is determined whether the contents of register K correspond to the total number of operation switches (for example, 16), and if it is determined that the total number is not, the process returns to step 18. If the numbers of the operating switches in the on state are stored in all areas MSW 0 to MSW 15 , the operations of steps 18 to 26 are repeated a number of times corresponding to the number of operating switches in the on state.

一方、オン状態の操作スイツチの個数が全個
数以下であれば、オン状態の操作スイツチの個
数分のエリアMSWKの内容に基づいて各端末
MPU20A〜20Dに含まれる各負荷に対応
するビツトオン動作させるためのデータ(論理
「1」)を書込む動作が行なわれた後、ステツプ
20においてレジスタIの内容が「FF」であ
ることが判断されて、ステツプ27へ進む。
On the other hand, if the number of operation switches in the on state is less than the total number, each terminal is
After writing data (logic "1") for bit-on operation corresponding to each load included in the MPUs 20A to 20D, it is determined in step 20 that the contents of register I are "FF". Then, proceed to step 27.

対応の負荷の駆動 ステツプ27において、エリアMOUT4の各
ビツトのデータに基づいて、マスタMPU10
に対応する負荷の駆動が行なわれる。
Driving the corresponding load In step 27, based on the data of each bit in the area MOUT 4 , the master MPU 10
The corresponding load is driven.

1フレームデータ送信動作 そして、ステツプ28〜32では、エリア
KMOUT0〜MOUT3の内容が所定の伝送フオ
ーマツトに従つて順次送信される。具体的に
は、ステツプ28においてレジスタKに0が設
定される。これは最初にデータを送信すべき端
末MPUとして20A(RS#0)を指定するた
めである。続いて、ステツプ28aに進み、レ
ジスタKの設定値がエリアDKの設定内容と一
致するか否か、すなわち端末番号Kの端末
MPUが既に異常端末として登録されているか
否かが判断される。もし、一致が判断される
と、ステツプ28bに進み、対応の端末のシス
テム電源回路がダウンされる。これによつて、
異常端末がマスタMPU10から切離される。
一方、一致が判断されないとステツプ29に進
む。ステツプ29では、端末MPU20Aに送
信すべき1フレームデータが編集される。この
1フレームデータは、送信先データSDAが
#0であり、送信元データSSAがマスタMPU
10を表わす#4であり、制御データがエリア
MOUT0の内容であり、これらのデータにBCC
コードが付加される。ステツプ30において、
ステツプ29で編集された1フレームデータが
各ケーブル30A〜30Dに含まれる光フアイ
バ331を介して各端末MPU20A〜20D
へ送信される。
1 frame data transmission operation Then, in steps 28 to 32, the area
The contents of KMOUT 0 to MOUT 3 are transmitted sequentially according to a predetermined transmission format. Specifically, in step 28, register K is set to 0. This is to designate 20A (RS#0) as the terminal MPU to which data should be transmitted first. Next, the process proceeds to step 28a, where it is determined whether the setting value of register K matches the setting contents of area DK , that is, whether the terminal with terminal number K
It is determined whether the MPU has already been registered as an abnormal terminal. If a match is determined, the process proceeds to step 28b, where the system power circuit of the corresponding terminal is shut down. By this,
The abnormal terminal is disconnected from the master MPU 10.
On the other hand, if no match is determined, the process proceeds to step 29. In step 29, one frame of data to be transmitted to the terminal MPU 20A is edited. For this one frame data, the destination data SDA is #0, and the source data SSA is the master MPU.
#4 represents 10, and the control data is area
are the contents of MOUT 0 and BCC these data
A code is added. In step 30,
One frame data edited in step 29 is sent to each terminal MPU 20A to 20D via the optical fiber 331 included in each cable 30A to 30D.
sent to.

このとき、各端末MPU20A〜20Dのそ
れぞれは、第10図に示すようにステツプ51
において送信先データSDAが自己の端末番号
(#K)を指定するものであるか否かを判断し
ている。送信先データSDAが#1の場合は、
端末MPU20Aに含まれるCPU21が自己の
指定されたことを判断して、ステツプ52へ進
む。ステツプ52において、BCCコードの判
定が行なわれ、誤りのないことが判断されると
ステツプ53へ進む。ステツプ53において、
受信データ(すなわちエリアMOUT0にストア
されていた制御データ)がRAM24の受信デ
ータ記憶エリア24aにストアされる。ステツ
プ54において、エリア24aの内容を入出力
インタフエース26を介してドライバ42に与
える。ドライバ42は、制御データに基づい
て、パワースイツチ430〜435のうち駆動
すべき負荷に対応するものをオンさせて、負荷
を駆動させる。ステツプ55において、入出力
インタフエース26に接続されている検出対象
の一例の各種センサからの入力信号が読込ま
れ、RAM24に含まれる送信データ記憶用エ
リア24b(図示せず)へストアさせる。その
後、CPU21は、ステツプ56においてポー
リング信号が自己を指定するものであるか否か
を判断し、自己の端末番号(#0)が指定され
るまで待機する。
At this time, each of the terminal MPUs 20A to 20D performs step 51 as shown in FIG.
, it is determined whether the destination data SDA specifies its own terminal number (#K). If destination data SDA is #1,
The CPU 21 included in the terminal MPU 20A determines that it has been designated, and proceeds to step 52. In step 52, the BCC code is judged, and if it is determined that there is no error, the process proceeds to step 53. In step 53,
The received data (ie, the control data stored in area MOUT 0 ) is stored in the received data storage area 24a of the RAM 24. In step 54, the contents of area 24a are provided to driver 42 via input/output interface 26. Based on the control data, the driver 42 turns on one of the power switches 430 to 435 that corresponds to the load to be driven, thereby driving the load. In step 55, input signals from various sensors connected to the input/output interface 26 as an example of detection targets are read and stored in the transmission data storage area 24b (not shown) included in the RAM 24. Thereafter, in step 56, the CPU 21 determines whether the polling signal designates itself, and waits until its own terminal number (#0) is designated.

一方、マスタMPU10側では、1フレーム
データを送信した後、ステツプ31においてレ
ジスタKの内容に1を加算して次に1フレーム
データを送信すべき端末MPU20Bの端末番
号をレジスタKにストアさせる。ステツプ32
において、レジスタKの内容が4でないことが
判断されて、ステツプ29へ戻る。そして、残
りの端末MPU20B〜20Dの順で、ステツ
プ29〜32の動作が繰返されるとともに、そ
れに伴つて他の端末MPU20B〜20Dが第
10図に示すステツプ51〜56の動作を行な
う。これによつて、各端末MPU20B〜20
Dに対応する負荷を駆動させるための制御デー
タが各端末MPUへ送信される。そして、すべ
ての端末MPU20A〜20Dに1フレームデ
ータが送信されると、ステツプ32においてレ
ジスタKの内容が4になつたことが判断され
て、ステツプ33へ進む。
On the other hand, on the master MPU 10 side, after transmitting one frame data, 1 is added to the contents of register K in step 31, and the terminal number of the terminal MPU 20B to which next one frame data is to be transmitted is stored in register K. Step 32
At this point, it is determined that the contents of register K are not 4, and the process returns to step 29. Then, the operations of steps 29 to 32 are repeated in the order of the remaining terminal MPUs 20B to 20D, and the other terminals MPUs 20B to 20D perform the operations of steps 51 to 56 shown in FIG. 10 accordingly. As a result, each terminal MPU20B~20
Control data for driving the load corresponding to D is transmitted to each terminal MPU. When one frame data is transmitted to all terminal MPUs 20A to 20D, it is determined in step 32 that the content of register K has become 4, and the process advances to step 33.

データ受信および異常制御動作 ステツプ33のサブルーチンは第9図に示す
フローチヤートに沿つて実行される。すなわ
ち、ステツプ101においてレジスタKに0が
設定される。なお、レジスタKの設定値は端末
番号を指定するものと考えれば以下の説明が容
易に理解されるであろう。続いて、ステツプ1
02では、レジスタKの設定値がエリアDK
設定内容と一致するか否か、すなわち端末番号
Kの端末MPUが既に異常端末として登録され
ているか否かが判断される。最初は、エリア
DKには16進数の「FF」が設定されている)の
で、不一致が判断される。そして、ステツプ1
03に進み、レジスタKの内容に対応する端末
番号(最初は端末MPU20Aを指定する#0)
が送信される。これに応じて、端末MPU20
AのCPU21は、ステツプ56(第10図参
照)においてポーリング信号が自己を指定する
ものであることを判断して、ステツプ57へ進
む。ステツプ57において、送信データ記憶エ
リア24bに記憶されている1フレームデータ
(検出データを含む)が伝送制御回路25、送
信バツフア55a、光結合器56a、光フアイ
バ332、光結合器57aおよび受信バツフア
58aを介して伝送制御回路15へ送信され
る。
Data reception and abnormality control operation The subroutine of step 33 is executed according to the flowchart shown in FIG. That is, in step 101, register K is set to 0. Note that the following explanation will be easily understood if it is considered that the setting value of register K specifies a terminal number. Next, step 1
In step 02, it is determined whether the setting value of register K matches the setting contents of area D K , that is, whether the terminal MPU with terminal number K has already been registered as an abnormal terminal. At first, the area
DK is set to hexadecimal ``FF''), so a mismatch is determined. And step 1
Proceed to 03 and enter the terminal number corresponding to the contents of register K (initially #0 specifies terminal MPU20A)
is sent. Accordingly, the terminal MPU20
The CPU 21 of A determines in step 56 (see FIG. 10) that the polling signal designates itself, and proceeds to step 57. In step 57, one frame data (including detection data) stored in the transmission data storage area 24b is transferred to the transmission control circuit 25, the transmission buffer 55a, the optical coupler 56a, the optical fiber 332, the optical coupler 57a, and the reception buffer 58a. It is transmitted to the transmission control circuit 15 via.

ここで、端末MPU20Aから送信される1
フレームデータ(第7図参照)は、送信先デー
タSDAが#4であり、送信元データSSDが
#0であり、制御データが端末MPU20Aに
対応する検出対象の動作状態を表わすデータで
あり、これらにBCCコードが付加されたもの
である。
Here, 1 transmitted from the terminal MPU20A
In the frame data (see FIG. 7), the destination data SDA is #4, the source data SSD is #0, and the control data is data representing the operating state of the detection target corresponding to the terminal MPU 20A. , with a BCC code added to it.

これに応じて、CPU11は、ステツプ10
4において端末MPUからの1フレームデータ
を受信する。そして、ステツプ105に進み、
受信した1フレームデータに含まれるBCCコ
ードに誤りがないか否かが判断される。BCC
コードに誤りがないと判断されれば、ステツプ
106に進み、1フレームの受信データのうち
検出対象の動作状態を表わすデータ部分のみが
エリアMAK(初回はMA0)に書込まれる。そし
て、ステツプ107に進み、エリアMA0の記
憶内容とエリアMB0の記憶内容とが一致する
か否かが判断される。初回はエリアMB0にオ
ール0が初期設定されているため、両方の記憶
内容は必ず異なる値となり、ステツプ110に
進む。このステツプ110では、エリアMA0
の記憶内容がエリアMB0に転送される。続い
て、ステツプ111においてレジスタKの内容
に1が加算される。そして、ステツプ112に
おいて、レジスタKの内容が4か否か、換言す
ればすべての端末MPU20A〜20Dにポー
リング信号を送信し、受信データを受取つたか
否かが判断される。初回はレジスタKの内容が
1であるため、再びステツプ102に戻る。そ
して、各端末MPU20B〜20Dごとに上述
の動作が繰返される。
In response, the CPU 11 performs step 10.
4, one frame data is received from the terminal MPU. Then, proceed to step 105,
It is determined whether or not there is an error in the BCC code included in the received one frame data. BCC
If it is determined that there is no error in the code, the process proceeds to step 106, where only the data portion representing the operating state of the object to be detected out of one frame of received data is written into area MA K (MA 0 at first). Then, the process proceeds to step 107, where it is determined whether or not the storage contents of area MA 0 and area MB 0 match. Since all 0s are initially set in area MB 0 for the first time, the contents of both memories are sure to have different values, and the process proceeds to step 110. In this step 110, the area MA 0
The memory contents of are transferred to area MB0 . Subsequently, in step 111, 1 is added to the contents of register K. Then, in step 112, it is determined whether the content of register K is 4 or not, in other words, it is determined whether polling signals have been transmitted to all terminals MPU 20A to 20D and received data has been received. Since the content of register K is 1 at the first time, the process returns to step 102 again. The above-described operation is then repeated for each terminal MPU 20B to 20D.

なお、初回は各端末MPU20A〜20Dに
対して上述の動作が行なわれても、いずれもス
テツプ108を通らないので、エリアMRCV0
〜MRCV3にはいずれも16進数の「00」が初期
設定されたままである。したがつて、ステツプ
112の動作の後、ステツプ40および41の
動作が実行されても、指示器2Bでの表示ない
し指示は行なわれない。
Note that even if the above operations are performed for each terminal MPU 20A to 20D for the first time, none of them pass through step 108, so the area MRCV 0
~MRCV 3 is still initially set to hexadecimal ``00''. Therefore, even if the operations in steps 40 and 41 are executed after the operation in step 112, no display or instruction is given on the indicator 2B.

ルーチンを1周して再び第9図の動作が実行
されるとき、エリアMAKの内容(今回受信し
たデータ)とエリアMBK(前回受信したデー
タ)との一致が判断されれば、ステツプ108
に進む。ステツプ108では、エリアMAK
内容をエリアMRCVKに転送する。そして、ス
テツプ109に進み、エリアMAKおよびエリ
アNKに0が設定される。前回と同様に、各端
末MPU20A〜20Dからのデータ受信が終
了すると、ステツプ40および41の動作が実
行される。今度は、エリアMRCV0〜MRCV3
にデータが格納されているので、それに応じて
制御対象2Bが制御される。
When the routine is executed once again and the operation shown in FIG. 9 is executed again, if it is determined that the contents of area MA K (the data received this time) match the area MB K (data received last time), step 108 is executed.
Proceed to. In step 108, the contents of area MAK are transferred to area MRCVK . The process then proceeds to step 109, where 0 is set in area MA K and area N K. Similar to the previous time, when data reception from each terminal MPU 20A to 20D is completed, the operations of steps 40 and 41 are executed. This time, area MRCV 0 ~ MRCV 3
Since the data is stored in , the controlled object 2B is controlled accordingly.

すなわち、ステツプ40において、エリア
MRCV0の内容に基づいて、制御対象2Bに含
まれる対応のインジケータランプが点灯表示さ
れる。また、端末MPU20B,20Cのそれ
ぞれの検出対象が水温、ガソリン量であれば、
それぞれのデータがエリアMRCV1,MRCV2
にストアされている。そこで、ステツプ41に
おいて、エリアMRCV1にストアされているデ
ータに基づいて水温が制御対象2Bの水温計に
指示される。また、エリアMRCV2にストアさ
れているデータに基づいて、ガソリン残量が制
御対象2Bのガソリン量指示器に指示される。
That is, in step 40, the area
Based on the contents of MRCV 0 , the corresponding indicator lamp included in the controlled object 2B is displayed lit. Also, if the detection targets of terminal MPU20B and 20C are water temperature and gasoline amount,
Each data is area MRCV 1 , MRCV 2
Stored in. Therefore, in step 41, the water temperature is instructed to the water temperature meter of the controlled object 2B based on the data stored in the area MRCV1 . Furthermore, based on the data stored in area MRCV 2 , the remaining amount of gasoline is indicated to the gasoline amount indicator of control object 2B.

上述のごとく、この実施例では、各端末
MPU20A〜20Dから受信したデータと前
回受信したデータとが一致したときのみ制御対
象2Bが制御される。これは、各端末MPUに
接続されているセンサやスイツチ類の状態が変
化した直後のチヤタリングにより、各端末
MPUからマスタMPU10へ送信されるデータ
に信頼性がなくなるためである。すなわち、こ
の実施例では、初回に第8図および第9図のル
ーチンの実行に要した時間(たとえば20ms)
がチヤタリングによる誤動作防止時間になる。
As mentioned above, in this embodiment, each terminal
The controlled object 2B is controlled only when the data received from the MPUs 20A to 20D and the previously received data match. This is caused by the chatter that occurs immediately after the status of the sensors and switches connected to the MPU of each terminal changes.
This is because the data sent from the MPU to the master MPU 10 becomes unreliable. That is, in this embodiment, the time required to execute the routines in FIGS. 8 and 9 for the first time (for example, 20 ms)
is the time required to prevent malfunctions due to chattering.

次に、前述のステツプ105でBCCコード
に誤りがあると判断された場合の動作を説明す
る。なお、このような状況は、ルーチンの初回
実行時からも起こり得る。まず、ステツプ11
3において、レジスタKの設定値で指定される
該当のエリアNKの内容に1が加算される。そ
して、ステツプ114に進み、レジスタNK
内容が5以上であるか否かが判断される。も
し、レジスタNKの内容が5以上でなければ、
ステツプ118に進み、該当のエリアMRCVK
に0が設定される。これによつて、その後ステ
ツプ40および41に進んだとき、該当の端末
MPUからのデータの表示ないし指示が禁止さ
れる。ステツプ118の動作の後は、前述のス
テツプ111以下の動作が繰返される。
Next, the operation when it is determined in step 105 that there is an error in the BCC code will be described. Note that such a situation may occur even when the routine is executed for the first time. First, step 11
3, 1 is added to the contents of the corresponding area N K specified by the set value of register K. The process then proceeds to step 114, where it is determined whether the contents of register N K are 5 or more. If the contents of register N K are not 5 or more,
Proceed to step 118 and select the corresponding area MRCV K.
is set to 0. This ensures that when you subsequently proceed to steps 40 and 41, the corresponding terminal
Displaying or instructing data from the MPU is prohibited. After the operation at step 118, the operations from step 111 described above are repeated.

一方、ステツプ114において、エリアNK
の内容が5以上であると判断された場合、すな
わち或る端末MPUからのBCGコードに連続し
て5回以上誤りが発生した場合(BCCコード
が途中で正常に戻ればステツプ109でエリア
NKに0が設定される)、ステツプ115に進
み、照光式押しボタンスイツチ3A〜3Dのう
ち端末番号#Kに対応するものが点灯される。
そして、ステツプ116に進み、そのときのエ
リアKの内容すなわち端末番号#Kがエリア
DKに転送される。これによつて、異常が発生
した端末の番号が登録される。すなわち、この
実施例では、或る端末MPUから受信したBCC
コードに連続して5回以上誤りが発生した場
合、その端末MPUに異常が発生したものと見
なしている。続いて、ステツプ117におい
て、エリアNKに0が設定される。そして、ス
テツプ118に進み、エリアMRCVKに0が設
定される。これによつて、該当の端末MPUか
らのデータの表示ないし指示が禁止される。そ
の後、前述のステツプ111以下の動作が繰返
される。
On the other hand, in step 114, area N K
If it is determined that the content of
NK is set to 0), the process proceeds to step 115, and one of the illuminated push button switches 3A to 3D corresponding to the terminal number #K is lit.
Then, the process advances to step 116, and the contents of area K at that time, that is, the terminal number #K is
Transferred to DK . As a result, the number of the terminal in which the abnormality has occurred is registered. That is, in this embodiment, the BCC received from a certain terminal MPU
If an error occurs in the code five or more times in a row, it is assumed that an abnormality has occurred in the terminal MPU. Subsequently, in step 117, 0 is set in area NK . Then, the process proceeds to step 118, where 0 is set in area MRCV K. This prohibits data display or instruction from the corresponding terminal MPU. Thereafter, the operations from step 111 described above are repeated.

以後は、ステツプ102において、該当の端
末番号#Kが異常端末としてエリアDKに登録
されていると判断されれば、ステツプ119に
進む。このステツプ119では、スイツチ3A
ないし3Dのうち該当のスイツチがオンされた
か否かが判断される。もし、オンされたと判断
すれば、ステツプ120に進み、そのスイツチ
に含まれる異常警告ランプが消灯される。そし
て、再びステツプ111以下の動作が繰返され
る。一方、ステツプ119において該当のスイ
ツチのオンが判断されなければ、直接ステツプ
111以下の動作が繰返される。
Thereafter, if it is determined in step 102 that the corresponding terminal number #K is registered in area DK as an abnormal terminal, the process proceeds to step 119. In this step 119, switch 3A
It is determined whether or not a corresponding switch among 3D and 3D is turned on. If it is determined that the switch has been turned on, the process proceeds to step 120, where the abnormality warning lamp included in the switch is turned off. Then, the operations from step 111 onwards are repeated again. On the other hand, if it is not determined in step 119 that the corresponding switch is on, the operations from step 111 onwards are directly repeated.

上述のごとく、この実施例では、或る端末
MPUの端末番号が異常端末として登録される
と、その端末MPUからのデータの取込みが禁
止される。これによつて、異常が発生した端末
MPUによつて制御対象が誤つて制御されるの
を防止することができる。また、異常有りとし
て登録された端末に対応する照光式押しボタン
スイツチが点灯されるので、運転者は異常が発
生した箇所を正確に知ることができ、修理が容
易となる。
As mentioned above, in this embodiment, a certain terminal
When the terminal number of an MPU is registered as an abnormal terminal, data acquisition from that terminal MPU is prohibited. Due to this, the terminal where the abnormality occurred
It is possible to prevent the control target from being erroneously controlled by the MPU. Further, since the illuminated push button switch corresponding to the terminal registered as having an abnormality is lit, the driver can accurately know the location where the abnormality has occurred, and repair can be facilitated.

なお、上述の実施例では、各端末MPUから
のデータのみ前回のデータとして比較している
が、マスタMPU自身の検出データに対しても
同様に実施することができる。そのための動作
フローは、当業者であれば第9図に示すフロー
チヤートから容易に考察されるであろうからそ
の説明を省略する。
In the above-described embodiment, only the data from each terminal MPU is compared as the previous data, but the same can be done for the detection data of the master MPU itself. The operational flow for this will be easily understood by those skilled in the art from the flowchart shown in FIG. 9, so a description thereof will be omitted.

以上のように、この発明によれば、端末制御部
から中央制御部へ伝送されるデータが所定回数以
上連続して誤つているとき端末制御装置に異常が
発生したとみなし、その端末制御部からのデータ
の取込みを禁止するとともにその端末制御部に異
常が発生したことを警報するようにしたので、ノ
イズの混入などによる一時的なデータの誤りと端
末制御部の異常によるデータの誤りとを区別して
検出でき、正確な誤り制御を行なうことができ
る。特に、自動車などにおいては、ノイズ発生源
が多いため非常に有効な異常制御が行なえる。
As described above, according to the present invention, when the data transmitted from the terminal control section to the central control section is erroneous for a predetermined number of times or more, it is assumed that an abnormality has occurred in the terminal control device, and the terminal control section In addition to prohibiting data import, a warning is also issued to indicate that an abnormality has occurred in the terminal control unit, making it possible to distinguish between temporary data errors due to noise contamination and data errors due to an abnormality in the terminal control unit. It can be detected separately and accurate error control can be performed. Particularly in automobiles, etc., where there are many noise sources, very effective abnormality control can be performed.

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

第1図はこの発明の一実施例の概略を示すブロ
ツク図である。第2A図〜第2D図は端末制御部
の一例の端末MPUとそれに接続される制御対象
の一例を図解的に示した図であり、第2E図は中
央制御部の一例のマスタMPUの入出力端子と各
制御対象との関係を示す図である。第3図はケー
ブルの詳細図である。第4図はこの発明の一実施
例の具体的な回路図である。第5図はROM13
の記憶領域を図解的に示した図である。第6図は
RAM14の記憶領域を図解的に示した図であ
る。第7図はこの発明の一実施例の具体的な動作
を説明するためのタイムチヤートである。第8図
〜第10図はこの発明の一実施例の動作を説明す
るためのフローチヤートであり、特に第8図およ
び第9図はマスタ側のフローチヤートを示し、第
10図は端末側のフローチヤートを示す。 図において、2Aは操作手段、2Bは指示器、
3A〜3Dは照光式押しボタンスイツチ、10は
マスタMPU(中央制御部)、20A〜20Dは端
末MPU(端末制御部)、30A〜30Dはケーブ
ル、33は光フアイバ、40A〜40Dは制御対
象/検出対象を示す。
FIG. 1 is a block diagram schematically showing an embodiment of the present invention. 2A to 2D are diagrams schematically showing an example of a terminal MPU as an example of a terminal control unit and an example of a controlled object connected thereto, and FIG. 2E is an input/output diagram of a master MPU as an example of a central control unit. FIG. 3 is a diagram showing the relationship between a terminal and each controlled object. FIG. 3 is a detailed view of the cable. FIG. 4 is a specific circuit diagram of an embodiment of the present invention. Figure 5 shows ROM13
FIG. 2 is a diagram schematically showing a storage area of . Figure 6 is
3 is a diagram schematically showing a storage area of RAM 14. FIG. FIG. 7 is a time chart for explaining the specific operation of an embodiment of the present invention. 8 to 10 are flowcharts for explaining the operation of an embodiment of the present invention. In particular, FIGS. 8 and 9 show the flowcharts on the master side, and FIG. 10 shows the flowcharts on the terminal side. Showing a flowchart. In the figure, 2A is an operating means, 2B is an indicator,
3A to 3D are illuminated push button switches, 10 is a master MPU (central control unit), 20A to 20D are terminal MPUs (terminal control units), 30A to 30D are cables, 33 is an optical fiber, 40A to 40D are controlled objects/ Indicates the detection target.

Claims (1)

【特許請求の範囲】 1 自動車に装備される複数の各種の制御対象を
配置位置の近いもので複数のグループにグループ
化し、各グループに含まれる或る数の制御対象を
グループごとに集約配線したシステムにおいて、
動作異常を集中的に検出する装置であつて、 前記各グループごとに設けられる複数の端末制
御部、 前記各端末制御部に含まれる複数の制御対象の
うちの或る制御対象の動作状態を選択するための
操作手段、 前記各端末制御部に共通的に設けられ、前記操
作手段の操作状態に基づいて各端末制御部に制御
対象の動作状態を制御するための制御信号を導出
し、各制御対象を遠隔的に制御する中央制御部、
および 警報手段を備え、 前記中央制御部は、 前記各端末制御部から受信したデータに誤りが
あることを検出するデータ誤り検出手段と、 前記データ誤り検出手段が連続して何回データ
の誤りを検出したかを前記端末制御部別に計数す
る誤り回数計数手段と、 前記誤り回数計数手段の計数結果が予め定める
所定回数に達したことを検出する所定回数検出手
段と、 前記所定回数検出手段の出力に応答し、該当の
端末制御部の異常を警報するように前記警報手段
を駆動制御する手段と、 前記所定回数検出手段の出力に応答して、該当
の端末制御部を特定する情報を登録する登録手段
と、 前記登録手段に登録されている端末制御部への
データの送信を禁止するとともに、当該端末制御
部から受信したデータに基づく制御を禁止する手
段とを含む、自動車の集約配線システムにおける
異常検出装置。
[Scope of Claims] 1. A plurality of various control objects installed in an automobile are grouped into a plurality of groups according to their arrangement positions, and a certain number of control objects included in each group are consolidated and wired for each group. In the system,
A device for intensively detecting operational abnormalities, comprising: a plurality of terminal control units provided for each group; and a device for selecting an operational state of a certain control target from among the plurality of control targets included in each of the terminal control units. an operation means for controlling the operating state of the controlled object to each terminal control unit based on the operation state of the operation means, provided in common in each of the terminal control units; a central control unit that remotely controls the target;
and an alarm means, the central control unit comprising: a data error detection means for detecting that there is an error in the data received from each terminal control unit; and a data error detection means for detecting an error in the data. an error count counting means for counting the number of errors detected for each of the terminal control units; a predetermined number of times detection means for detecting that the count result of the error number counting means has reached a predetermined number of times; and an output of the predetermined number of times detection means. means for driving and controlling the alarm means to issue a warning of an abnormality in the terminal control unit in question; and registering information identifying the terminal control unit in response to the output of the predetermined number of times detection unit. An integrated wiring system for an automobile, comprising: a registration means; and a means for prohibiting transmission of data to a terminal control unit registered in the registration means and prohibiting control based on data received from the terminal control unit. Anomaly detection device.
JP58008264A 1983-01-20 1983-01-20 Fault detector for intensive wiring system of automobile Granted JPS59133796A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58008264A JPS59133796A (en) 1983-01-20 1983-01-20 Fault detector for intensive wiring system of automobile

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58008264A JPS59133796A (en) 1983-01-20 1983-01-20 Fault detector for intensive wiring system of automobile

Publications (2)

Publication Number Publication Date
JPS59133796A JPS59133796A (en) 1984-08-01
JPH0374557B2 true JPH0374557B2 (en) 1991-11-27

Family

ID=11688289

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58008264A Granted JPS59133796A (en) 1983-01-20 1983-01-20 Fault detector for intensive wiring system of automobile

Country Status (1)

Country Link
JP (1) JPS59133796A (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4678835A (en) * 1986-01-30 1987-07-07 Ppg Industries, Inc. Coating composition containing an ungelled reaction product as a curative
PT106994A (en) 2013-06-09 2014-12-09 Active Space Technologies Actividades Aeroespaciais Lda METHOD AND MONITORING SYSTEM FOR AGING ELECTRIC WIRING
JP2018193064A (en) * 2018-09-03 2018-12-06 ダイヤモンド電機株式会社 On-vehicle electronic control device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5780944A (en) * 1980-11-05 1982-05-20 Hitachi Ltd Collective wiring system for automobile
JPS586482B2 (en) * 1978-11-30 1983-02-04 岡安 徳一 How to make fully machine-sewn lightweight underground tabs

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS597826Y2 (en) * 1979-05-07 1984-03-09 株式会社明電舎 Traffic zone detection circuit in remote monitoring and control equipment
JPS5910836Y2 (en) * 1982-06-10 1984-04-04 アンリツ株式会社 remote control device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS586482B2 (en) * 1978-11-30 1983-02-04 岡安 徳一 How to make fully machine-sewn lightweight underground tabs
JPS5780944A (en) * 1980-11-05 1982-05-20 Hitachi Ltd Collective wiring system for automobile

Also Published As

Publication number Publication date
JPS59133796A (en) 1984-08-01

Similar Documents

Publication Publication Date Title
US6075438A (en) Communication network for vehicle control and diagnosis method thereof
KR930009122B1 (en) Collective wiring system and method of control thereof
US4652853A (en) Multiple communication system for vehicular bodies
KR100302384B1 (en) Digital unified control apparatus and method in automobile electric device
US4817040A (en) Vehicle condition monitoring system
CA2322520C (en) A diagnostic communication interface unit for an adaptive braking system
JPH10161735A (en) Distribution control system of heavy equipment
US6674288B2 (en) Vehicle lamp inspection system
US20040249527A1 (en) Vehicle information display apparatus
US7719197B2 (en) Finite state machine vehicle headlight controller
JPH0374557B2 (en)
EP0033664A1 (en) Vehicle wiring system
EP0273526B1 (en) Electrical system for a motor vehicle
EP1323581B1 (en) Self diagnostic apparatus for vehicle information display system
WO2003015331A2 (en) Digital transmission and control system for vehicles
JPH0617405Y2 (en) Anomaly detection device in automobile integrated wiring system
CN101596889B (en) Method for configuration of ultrasonic-based driver assistance system and corresponding ultrasonic sensor
JPH0248278Y2 (en)
JPH0511331Y2 (en)
JPH0248279Y2 (en)
RU2195404C1 (en) Vehicle controller
JPH0413666B2 (en)
EP1362745A2 (en) Electronic management system for lighting units and auxiliary services for trailers and semi-trailers
JP2002248967A (en) Vehicle trouble diagnosis display device
JP2781190B2 (en) Vehicle failure diagnosis device