JP3026668B2 - Electronic control unit - Google Patents

Electronic control unit

Info

Publication number
JP3026668B2
JP3026668B2 JP4025506A JP2550692A JP3026668B2 JP 3026668 B2 JP3026668 B2 JP 3026668B2 JP 4025506 A JP4025506 A JP 4025506A JP 2550692 A JP2550692 A JP 2550692A JP 3026668 B2 JP3026668 B2 JP 3026668B2
Authority
JP
Japan
Prior art keywords
state
sensor
detection terminal
detection
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP4025506A
Other languages
Japanese (ja)
Other versions
JPH0688871A (en
Inventor
一行 飯塚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Idec Corp
Original Assignee
Idec Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Idec Corp filed Critical Idec Corp
Priority to JP4025506A priority Critical patent/JP3026668B2/en
Publication of JPH0688871A publication Critical patent/JPH0688871A/en
Application granted granted Critical
Publication of JP3026668B2 publication Critical patent/JP3026668B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Measurement Of Velocity Or Position Using Acoustic Or Ultrasonic Waves (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は電子式制御装置に関し、
特に、複数の装置が設けられた際に相互干渉を防止する
為の同期信号を制御する構造に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic control device,
In particular, it relates to a structure for controlling a synchronization signal for preventing mutual interference when a plurality of devices are provided.

【0002】[0002]

【従来の技術】電子式制御装置には様々な方式のものが
存在する。その一例として、超音波センサがあり、超音
波を比較的近距離に存在する被検出物に対して発射す
る。そして、被検出物から反射されてくる超音波の変化
によって例えば物体の存否、大きさ及び厚みのような検
出を行うものである。
2. Description of the Related Art There are various types of electronic control units. One example is an ultrasonic sensor, which emits ultrasonic waves to an object to be detected that is present at a relatively short distance. The detection of the presence, size, and thickness of the object is performed based on the change in the ultrasonic wave reflected from the object.

【0003】超音波センサの用途としては様々なものが
あるが、例えば、工場内の自動搬送車に取り付けてある
衝突防止用のセンサが挙げられる。自動搬送車の場合、
一定の走行領域内を正確に走行し、かつ走行中の衝突防
止の為にその左右に複数の超音波センサが近接して設け
られる。。この時、一つのセンサから発射された超音波
が他のセンサで受信され相互干渉が生じることがある。
この相互干渉が生じると誤動作が起きて衝突の虞も生じ
る。
[0003] There are various uses of an ultrasonic sensor. For example, a sensor for preventing collision mounted on an automatic transport vehicle in a factory can be cited. For automatic guided vehicles,
A plurality of ultrasonic sensors are provided close to each other on the right and left sides of the vehicle so as to travel accurately in a certain traveling area and prevent collision during traveling. . At this time, ultrasonic waves emitted from one sensor may be received by another sensor and cause mutual interference.
When this mutual interference occurs, a malfunction occurs and a collision may occur.

【0004】そこで、このような相互干渉を防止する
為、センサを交互に動作させる方法が用いられている。
つまり、一つのセンサが検出動作を行っている間中もう
一方のセンサは動作せずに待機し、先に動作したセンサ
が検出動作を終了した直後に待機していたセンサが検出
動作を開始するようにしている。図6に超音波センサ5
0、60を交互に動作させるようにしたシステムのブロ
ック図を示す。同期信号発生装置(シーケンサ)55の
aの出力からは、図4Bの100の示すような信号が出
力される。これを受けて超音波センサ50は、信号10
0がHIGHレベルの時のみ動作を行う。一方、同期信
号発生装置55のb出力からは、図4Bの200に示す
信号が出力され、超音波センサ60に与えられる。信号
200は信号100と位相が逆になるように生成されて
いるため、超音波センサ60は超音波センサ50の休止
期間中にのみ動作を行う。すなわち、両センサは交互に
動作を行う。尚、両センサ50、60のいずれを先に動
作させるかは、予め同期信号発生装置55に設定されて
いる。
In order to prevent such mutual interference, a method of alternately operating the sensors has been used.
In other words, while one sensor is performing the detection operation, the other sensor does not operate and waits, and the sensor that has been waiting immediately after the sensor that has operated has completed the detection operation starts the detection operation. Like that. FIG. 6 shows an ultrasonic sensor 5.
FIG. 2 shows a block diagram of a system in which 0 and 60 are operated alternately. From the output of a of the synchronization signal generator (sequencer) 55, a signal as shown by 100 in FIG. 4B is output. In response, the ultrasonic sensor 50 outputs the signal 10
The operation is performed only when 0 is at the HIGH level. On the other hand, a signal indicated by reference numeral 200 in FIG. 4B is output from the output b of the synchronization signal generator 55 and is provided to the ultrasonic sensor 60. Since the signal 200 is generated so that the phase of the signal 200 is opposite to that of the signal 100, the ultrasonic sensor 60 operates only during the idle period of the ultrasonic sensor 50. That is, both sensors operate alternately. Which of the two sensors 50 and 60 is operated first is set in the synchronization signal generator 55 in advance.

【0005】[0005]

【発明が解決しようとする課題】しかし、上記のような
超音波センサには以下のような問題点がある。電子式制
御装置を交互に動作させるためには、同期信号を外部か
ら与え得る必要があった。すなわち、同期信号発生装置
を用意しなければならずシステムの複雑化、高価格化を
招いていた。従来の超音波センサを近接して設ける際に
は、相互干渉を防止する為にそれぞれのセンサの検出動
作を制御する同期信号を与えなければならず、その為に
は同期信号を外部から与える装置が必要である。更に、
同期信号を発する順序等をも予め設定しなければならな
いので、その設定に手間がかかっていた。更に同期信号
を発する外部装置を複数のセンサに接続する為にそれぞ
れ複数配線を行うので配線に関する手間や費用がかかる
という問題もあった。
However, the above ultrasonic sensor has the following problems. In order to operate the electronic control device alternately, it was necessary to be able to externally supply a synchronization signal. That is, a synchronizing signal generator must be prepared, resulting in a complicated system and a high price. When a conventional ultrasonic sensor is provided in close proximity, a synchronizing signal for controlling the detection operation of each sensor must be given in order to prevent mutual interference. is necessary. Furthermore,
Since the order in which the synchronization signals are issued must be set in advance, the setting is time-consuming. Furthermore, since a plurality of wirings are performed to connect an external device that emits a synchronization signal to a plurality of sensors, there is a problem that the wiring is troublesome and expensive.

【0006】そこで、本発明は電子式制御装置に同期信
号を発生させる装置を設け、かつ、その同期信号の発生
の順序及び設定をも電子式制御装置内で自動的に決定
し、更に互いの配線が容易である電子式制御装置の提供
を目的とする。
Therefore, the present invention provides a device for generating a synchronizing signal in an electronic control device, and automatically determines the order and setting of the generation of the synchronizing signal in the electronic control device. It is an object of the present invention to provide an electronic control device in which wiring is easy.

【0007】[0007]

【課題を解決するための手段】請求項1に係る電子式制
御回路は、電源入力に応じ各装置毎に異なる固有時間経
過後に検出端子を第一の状態にし、第一の状態にした後
各装置間でほぼ差異のない出力時間が経過したとき前記
検出端子を第二の状態にする信号出力手段、前記検出端
子が第二の状態になった直後に、他の装置の検出端子の
状態を検知し、当該他の装置の検出端子が第一の状態の
場合はマスタ信号を出力し、第二の状態の場合はスレー
ブ信号を出力する状態検知手段、状態検知手段が出力し
たマスタ信号又はスレーブ信号を取り込み、マスタ信号
が取り込まれた場合はマスタ動作を行い、スレーブ信号
が取り込まれた場合はスレーブ動作を行う動作実行手
段、を備えた事を特徴としている。
According to a first aspect of the present invention, there is provided an electronic control circuit, wherein a detection terminal is set to a first state after a lapse of a specific time for each device in response to a power supply input, and after the first state, each detection terminal is set to a first state. A signal output means for setting the detection terminal to the second state when the output time having substantially no difference between the devices has elapsed, and immediately after the detection terminal has changed to the second state, the state of the detection terminal of another device is changed. State detection means for detecting and outputting a master signal when the detection terminal of the other device is in the first state and outputting a slave signal when the detection terminal is in the second state, a master signal or slave output by the state detection means An operation executing means for receiving a signal, performing a master operation when a master signal is captured, and performing a slave operation when a slave signal is captured is provided.

【0008】請求項2の電子式制御装置においては、検
出端子と他の装置の検出端子とを単一の接続線で接続
し、状態検知手段は、前記接続線を通じて他の装置の検
出端子が第一の状態であるか第二状態であるかを検知す
る、ことを特徴としている。
In the electronic control device according to the second aspect, the detection terminal is connected to the detection terminal of another device by a single connection line, and the state detection means is connected to the detection terminal of the other device through the connection line. It is characterized by detecting whether the state is the first state or the second state.

【0009】[0009]

【作用】請求項1に係る電子式制御装置においては、各
装置毎で異なる固有時間経過後に検出端子を第一の状態
にする。次に各装置間で一定出力時間を設けた後に検出
端子を第二の状態に設定する。そして、検出端子が第二
の状態になった直後に他の装置の検出端子の状態を検出
する。もしこの時、他の装置の検出端子の状態が第一の
状態であれば、マスタ動作を行う。一方、他の装置の検
出端子も第二の状態になった直後に検出端子の状態を検
出する。この時、検出端子が第二の状態であればスレー
ブ信号動作を行う。従って、各装置毎に他の装置の検出
端子の状態を検出をすることにより、マスタ動作又は、
スレーブ動作の決定を外部機器に頼る事なく装置間で行
う事が出来る。
In the electronic control device according to the first aspect, the detection terminal is set to the first state after the elapse of a specific time which differs for each device. Next, after a certain output time is provided between the devices, the detection terminal is set to the second state. Then, immediately after the detection terminal enters the second state, the state of the detection terminal of another device is detected. At this time, if the state of the detection terminal of another device is the first state, the master operation is performed. On the other hand, the detection terminals of other devices also detect the state of the detection terminals immediately after the second state. At this time, if the detection terminal is in the second state, the slave signal operation is performed. Therefore, by detecting the state of the detection terminal of another device for each device, the master operation or,
The determination of the slave operation can be made between the devices without depending on the external device.

【0010】また、マスタ信号、スレーブ信号の出力
は、各装置毎で異なる固有時間の時間差に基づいて定め
ている。この為、各々の装置の個性を利用してマスタ動
作、スレーブ動作を決定する事が可能になる。
The output of the master signal and the output of the slave signal are determined based on the time difference of the unique time which differs for each device. Therefore, it is possible to determine the master operation and the slave operation by utilizing the individuality of each device.

【0011】請求項2に係る電子式制御装置において
は、検出端子と他の装置の検出端子とを単一の接続線に
よって接続する。従って、信号出力及び信号取り込みの
為、複数の接続線を用いる必要がなく、他装置との配線
が容易になる。
In the electronic control device according to the second aspect, the detection terminal and the detection terminal of another device are connected by a single connection line. Therefore, it is not necessary to use a plurality of connection lines for signal output and signal capture, and wiring to other devices is facilitated.

【0012】[0012]

【実施例】電子式制御装置には様々な装置があるが、そ
の一つとして超音波センサがある。超音波センサは超音
波を検出物に発射してその反射された超音波を検知する
ことにより物体の検知を行う。つまり、発射した超音波
が検出物に反射されてセンサに受信されると、検出物の
存在が確認され、受信されない場合には、検出物は存在
しないと判断する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS There are various types of electronic control units, one of which is an ultrasonic sensor. The ultrasonic sensor detects an object by emitting ultrasonic waves to a detection object and detecting the reflected ultrasonic waves. That is, when the emitted ultrasonic wave is reflected by the detection object and received by the sensor, the presence of the detection object is confirmed. When the ultrasonic wave is not received, it is determined that the detection object does not exist.

【0013】このような超音波センサを二つ近接して設
け、各々独立して検出する場合がある。超音波センサを
近接して設置した場合には、動作の際に一方のセンサが
発射した超音波を他方のセンサが受信してしまう虞があ
る。つまり、他方のセンサからの超音波を受信して誤動
作を起こしてしまい、不都合が生じる。そこで、同期信
号を発して一方のセンサが動作されている間は他方のセ
ンサは停止し、交互に検出を行う。
There is a case where two such ultrasonic sensors are provided close to each other and each of them is independently detected. If the ultrasonic sensors are installed close to each other, there is a risk that the other sensors may receive ultrasonic waves emitted by one sensor during operation. In other words, an ultrasonic wave from the other sensor is received and a malfunction occurs, which causes inconvenience. Therefore, while one sensor is operating by issuing a synchronization signal, the other sensor stops, and detection is performed alternately.

【0014】このような超音波センサの制御において
は、電源を入力した直後、作動を開始する時点でセンサ
の動作の先後を決定する必要がある。つまり、動作開始
の時にどのセンサから先に動作をさせるのかを決定し、
動作開始後は同期信号を与えて交互、動作をさせる。こ
うしたセンサの動作の決定に際して、他のセンサより先
に動作するセンサをマスタ機器、一方、マスタに従属し
て動作をするセンサをスレーブ機器と呼ぶ。マスタ機器
はスレーブ機器に対して交互に動作を行う為の同期信号
を送るセンサであり、スレーブ機器はこの同期信号を受
け取って動作を行う。以下にマスタ機器、スレーブ機器
の決定、つまり、いずれを先に起動させるかの認識動作
を説明する。
In the control of such an ultrasonic sensor, it is necessary to determine before and after the operation of the sensor at the time of starting the operation immediately after the power is input. In other words, when starting the operation, it is determined which sensor is to be operated first,
After the operation is started, the operation is performed alternately by applying a synchronization signal. In deciding the operation of such a sensor, a sensor that operates before other sensors is called a master device, and a sensor that operates according to the master is called a slave device. The master device is a sensor that sends a synchronization signal for alternately operating the slave device, and the slave device receives the synchronization signal and operates. Hereinafter, the determination operation of the master device and the slave device, that is, the operation of recognizing which device is activated first will be described.

【0015】本発明に係る電子式制御装置を超音波セン
サに適用した場合の一実施例を図に基づいて説明する。
図1に本発明に係る超音波センサの構成の一実施例を示
すブロック図を掲げる。超音波センサ1、超音波センサ
2はマスタ専用機器、スレーブ専用機器がなく、同一構
造の装置であり、これら二つのセンサは二本の接続線7
0,80で結ばれている。それぞれのセンサには電源回
路20,30が設けられており、電力を各部分に供給し
ている。なお、センサ1、センサ2の電源スイッチ(図
示せず)は連動して動作するようになっている。又、超
音波センサとして検知等を行う超音波センサ本体回路5
2,53も設置されている。更に、CPU23、33に
はタイマ25、35を介して水晶発信回路29,39や
時定数部品である抵抗27,37やコンデンサ28、3
8が接続されている。ROM21,31,RAM22、
32論理回路24、34もセンサ内に設けられている。
An embodiment in which the electronic control device according to the present invention is applied to an ultrasonic sensor will be described with reference to the drawings.
FIG. 1 is a block diagram showing an embodiment of the configuration of the ultrasonic sensor according to the present invention. The ultrasonic sensor 1 and the ultrasonic sensor 2 are devices having the same structure without a master-dedicated device or a slave-dedicated device, and these two sensors have two connection lines 7.
They are tied at 0,80. Each sensor is provided with a power supply circuit 20, 30, and supplies power to each part. The power switches (not shown) of the sensors 1 and 2 operate in conjunction with each other. Also, an ultrasonic sensor main body circuit 5 which performs detection and the like as an ultrasonic sensor
2,53 are also installed. Further, the CPUs 23 and 33 receive, via timers 25 and 35, crystal oscillation circuits 29 and 39, resistors 27 and 37 which are time constant components, capacitors 28 and
8 are connected. ROM21, 31, RAM22,
32 logic circuits 24, 34 are also provided in the sensor.

【0016】センサを動作させるには、先ず電源スイッ
チ(図示せず)を投入して電源回路20(30)をオン
にすると、各部に電源電圧(仮に5Vとする)5Vが供
給される。CPU23(33)はリセット端子C1(C
2)に入力された電圧が、しきい値を超えた時に動作を
始める。リセット端子C1(C2)には抵抗27(3
7)、コンデンサ28(38)が接続されており、抵抗
を介して電源回路20(30)に接続されている。した
がって、電源投入後、抵抗27(37)、コンデンサ2
8(38)の時定数により定まる固有時間ta(tb)
の後、CPU23(33)が動作を開始する。この際に
抵抗27、コンデンサ28の時定数と、抵抗37、コン
デンサ38の時定数とは完全に同じにはならないので、
固有時間taと固有時間tbとは、わずかに異なること
となる。尚、電源スイッチは電源回路20(30)に対
し同時に電力を供給するので固有時間ta及び固有時間
tbの時間に影響を与える事はない。
To operate the sensor, first, a power switch (not shown) is turned on to turn on the power supply circuit 20 (30), and a power supply voltage (supposedly 5 V) of 5 V is supplied to each section. The CPU 23 (33) resets the reset terminal C1 (C
The operation starts when the voltage input in 2) exceeds the threshold value. The reset terminal C1 (C2) has a resistor 27 (3
7), the capacitor 28 (38) is connected, and connected to the power supply circuit 20 (30) via a resistor. Therefore, after the power is turned on, the resistor 27 (37) and the capacitor 2
8 (38), the specific time ta (tb) determined by the time constant
Thereafter, the CPU 23 (33) starts operating. At this time, since the time constants of the resistor 27 and the capacitor 28 and the time constants of the resistor 37 and the capacitor 38 are not completely the same,
The specific time ta and the specific time tb will be slightly different. Since the power switch simultaneously supplies power to the power supply circuit 20 (30), it does not affect the time of the specific time ta and the specific time tb.

【0017】各CPU23、33は、固有時間ta、t
b経過後、図5に示すフローチャートに従って動作を行
い、自己側がマスタであるか、スレーブであるかを決定
する。ここで、図4A、図5に基づいてセンサの動作を
説明する。図4Aはセンサ1、2の検出端子b1,b2
の信号の状態を示している。又、図5はセンサ1の動作
フローチャートである。
Each of the CPUs 23 and 33 has a specific time ta, t
After the elapse of b, the operation is performed according to the flowchart shown in FIG. 5, and it is determined whether the own side is a master or a slave. Here, the operation of the sensor will be described based on FIGS. 4A and 5. FIG. 4A shows detection terminals b1 and b2 of sensors 1 and 2.
3 shows the state of the signal. FIG. 5 is an operation flowchart of the sensor 1.

【0018】センサ1では固有時間ta経過後に直ちに
CPU23は動作を開始して、ROM21に格納されて
いるプログラムにしたがって各部を制御する。また、C
PU23は検出端子b1に予め定めた出力時間t2を与
える(図4A)。
In the sensor 1, the CPU 23 starts operating immediately after the elapse of the specific time ta, and controls each unit according to the program stored in the ROM 21. Also, C
The PU 23 gives a predetermined output time t2 to the detection terminal b1 (FIG. 4A).

【0019】この出力時間t2は水晶発信器29で発信
したクロック信号をタイマ25でカウントして与えてい
る。
The output time t2 is obtained by counting the clock signal transmitted from the crystal oscillator 29 by the timer 25.

【0020】出力時間t2を正確に与えるために、先
ず、タイマ25を0にセットする(図5、ステップS
1)。次にCPU23でタイマ25によりカウントされ
たクロック信号数が予め定められているt2と同じにな
るかどうかを判断する(図5、ステップS3)。もし、
CPU23がタイマ25でカウントされたクロック信号
数とt2が同じでないと判断すると、タイマ25は再び
クロック信号数をカウントする。ここで、クロック信号
数とt2とが同じと判断されると、CPU23は検出端
子b1をHIGHの状態にする(図5、ステップS
5)。この検出端子b1がHIGHの状態にされた直後
をJ時点とし、この時点の入力端子a1の状態を読み込
む(図4A、図5、ステップS7)。
In order to give the output time t2 accurately, first, the timer 25 is set to 0 (FIG. 5, step S
1). Next, the CPU 23 determines whether or not the number of clock signals counted by the timer 25 is equal to a predetermined time t2 (FIG. 5, step S3). if,
When the CPU 23 determines that the number of clock signals counted by the timer 25 and t2 are not the same, the timer 25 counts the number of clock signals again. Here, when it is determined that the number of clock signals and t2 are the same, the CPU 23 sets the detection terminal b1 to the HIGH state (FIG. 5, step S
5). Immediately after the detection terminal b1 is set to the HIGH state, the time point J is set, and the state of the input terminal a1 at this time point is read (FIG. 4A, FIG. 5, step S7).

【0021】そして、読み込んだ入力端子a1の状態が
LOWであるかHIGHであるかをCPU23で判断す
る(図5、ステップS9)。本実施例において、J時点
ではセンサ1の検出端子b1はHIGHであるが、セン
サ2の検出端子b2はLOWの状態である。従って、セ
ンサ1の論理回路24中のAND回路41には自らの発
信したHIGHとセンサ2のLOWが入力される。AN
D回路41にはHIGHとLOWが入力されているの
で、入力端子a1には、第一の状態であるLOWが出力
される。
Then, the CPU 23 determines whether the read state of the input terminal a1 is LOW or HIGH (FIG. 5, step S9). In the present embodiment, at time J, the detection terminal b1 of the sensor 1 is HIGH, but the detection terminal b2 of the sensor 2 is LOW. Accordingly, the HIGH signal transmitted by itself and the LOW signal of the sensor 2 are input to the AND circuit 41 in the logic circuit 24 of the sensor 1. AN
Since HIGH and LOW are input to the D circuit 41, LOW which is the first state is output to the input terminal a1.

【0022】入力端子a1にLOWが出力されると、セ
ンサ1はマスタ機器として設定される(図5、ステップ
S11)。そして、マスタ機器として、センサ動作を行
う(図5、ステップS13)。もし、入力端子a1がH
IGHであれば、スレーブ機器として設定され、スレー
ブ機器としてセンサ動作を行う(図5、ステップS1
2、ステップS14)。
When LOW is output to the input terminal a1, the sensor 1 is set as a master device (FIG. 5, step S11). Then, the sensor operation is performed as the master device (FIG. 5, step S13). If the input terminal a1 is H
If it is IGH, it is set as a slave device and performs a sensor operation as a slave device (FIG. 5, step S1).
2. Step S14).

【0023】尚、センサ2での動作も図5と同様のフロ
ーで行われているが、以下のように異なる。図4Aに示
すように、センサ2の固有時間tbはセンサ1の固有時
間taとtd分だけ差が生じている。従って、出力時間
t2がセンサ2の検出端子b2に与えられるのがtd分
遅れている。つまり、センサ2の検出端子b2はセンサ
1よりtd分おくれてHIGHの状態になる(図4
A)。
The operation of the sensor 2 is performed according to the same flow as in FIG. 5, but differs as follows. As shown in FIG. 4A, the specific time tb of the sensor 2 is different from the specific time ta of the sensor 1 by td. Accordingly, the output time t2 is given to the detection terminal b2 of the sensor 2 with a delay of td. That is, the detection terminal b2 of the sensor 2 becomes HIGH after being shifted by td from the sensor 1 (FIG. 4).
A).

【0024】この検出端子b2がHIGH状態になった
直後をG時点として入力端子a2の状態を読み込む(図
4A、図5、ステップS7)。次に、読み込んだ入力端
子a2の状態がLOWであるかHIGHであるかをCP
U23で判断する(図5、ステップS9)。センサ2の
論理回路34中のAND回路51には自らの発信したH
IGHとセンサ1のHIGHが入力される。つまり、A
ND回路51にはHIGHとHIGHが入力されている
ので、入力端子a2には、第二の状態であるHIGHが
出力される。
The state of the input terminal a2 is read as the time point G immediately after the detection terminal b2 becomes HIGH (FIG. 4A, FIG. 5, step S7). Next, it is determined whether the read state of the input terminal a2 is LOW or HIGH.
The determination is made in U23 (FIG. 5, step S9). The AND circuit 51 in the logic circuit 34 of the sensor 2 has its own transmitted H
IGH and HIGH of the sensor 1 are input. That is, A
Since HIGH and HIGH are input to the ND circuit 51, HIGH in the second state is output to the input terminal a2.

【0025】HIGHが出力されると、センサ2はスレ
ーブ機器として設定される(図5、ステップS12)。
そして、スレーブ機器として、センサ動作を行う(図
5、ステップS14)。
When HIGH is output, the sensor 2 is set as a slave device (FIG. 5, step S12).
Then, the sensor operation is performed as a slave device (FIG. 5, step S14).

【0026】マスタ機器としてセンサ1、スレーブ機器
としてセンサ2が設定された後の動作を図4Bに基づい
て説明する。マスタ機器のセンサ1の検出端子b1から
はスレーブであるセンサ2に対して接続線80を介して
同期信号91が送り続けられる。この同期信号91は常
にセンサ2の入力端子a2で監視されている。
The operation after the sensor 1 is set as the master device and the sensor 2 is set as the slave device will be described with reference to FIG. 4B. The synchronization signal 91 is continuously transmitted from the detection terminal b1 of the sensor 1 of the master device to the sensor 2 as the slave via the connection line 80. This synchronization signal 91 is constantly monitored at the input terminal a2 of the sensor 2.

【0027】センサ1はLOW状態の同期信号91を出
力すると共に、センサとしての動作を開始する(図4B
のα)。そして、センサ1はt秒経過後に動作を停止す
る(図4Bのβ)。センサ1が動作を停止すると同時に
同期信号91をHIGH状態にする。
The sensor 1 outputs a LOW synchronization signal 91 and starts operating as a sensor (FIG. 4B).
Α). Then, the sensor 1 stops operating after elapse of t seconds (β in FIG. 4B). At the same time as the operation of the sensor 1 is stopped, the synchronization signal 91 is set to the HIGH state.

【0028】一方センサ2は同期信号91のHIGH状
態を受け取った後に動作を開始する(図4Bのγ)。そ
して、検出動作を行いt秒経過した後、動作を停止する
(図4Bのε)。センサ2が動作を停止するとセンサ1
は再び動作を始める。以上のようにして、センサ1とセ
ンサ2とが交互に動作する。
On the other hand, the sensor 2 starts operating after receiving the HIGH state of the synchronization signal 91 (γ in FIG. 4B). Then, the detection operation is performed, and after elapse of t seconds, the operation is stopped (ε in FIG. 4B). When sensor 2 stops operating, sensor 1
Starts working again. As described above, the sensor 1 and the sensor 2 operate alternately.

【0029】次に、他の実施例を図2に示す。この実施
例においては、超音波センサ1,2が、一本の接続線9
0を介して接続されている点が異なる。論理回路24、
34の詳細を示すと、図3のようになる。この実施例に
おいても、固有時間ta、tb終了後に、CPU23,
33がリセットされて端子b1,b2をLOWレベルに
するとともに、さらにt2経過後に、HIGHレベルに
する点においては、図1のものと同じである。
Next, another embodiment is shown in FIG. In this embodiment, the ultrasonic sensors 1 and 2 are connected to one connecting line 9.
The difference is that the connection is made via a 0. Logic circuit 24,
FIG. 3 shows details of 34. Also in this embodiment, after the end of the specific times ta and tb, the CPU 23,
1 is the same as that of FIG. 1 in that the terminals b1 and b2 are reset to LOW level after being reset, and to HIGH level after a lapse of t2.

【0030】センサ1のCPU23は、リセットの後さ
らにt2経過後に端子b1をLOWレベルからHIGH
レベルに変える(図4AのJ時点)。しかし、この時点
においては、センサ2のCPU33の端子b2は、LO
Wレベルである。また、接続線90の両端はプルアップ
されている。従って、検出端子d1、d2共に、LOW
レベルとなる。センサ1のCPU23は端子d1の状態
を、端子a1より取り込む。ここでは、LOWレベルで
あるから、マスタ機器として動作を行う(図5のステッ
プS9参照)。
The CPU 23 of the sensor 1 changes the terminal b1 from the LOW level to the HIGH level after a lapse of t2 after the reset.
Change to level (at time J in FIG. 4A). However, at this time, the terminal b2 of the CPU 33 of the sensor 2
W level. Both ends of the connection line 90 are pulled up. Therefore, both the detection terminals d1 and d2 are LOW.
Level. The CPU 23 of the sensor 1 captures the state of the terminal d1 from the terminal a1. Here, since it is at the LOW level, the operation is performed as the master device (see step S9 in FIG. 5).

【0031】一方、センサ2のCPU33も、リセット
の後さらにt2経過後に端子b2をLOWレベルからH
IGHレベルに変える(図4AのG時点)。この時点に
おいては、センサ1のCPU23の端子b1は既にHI
GHレベルである。従って、検出端子d1、d2と共に
HIGHレベルとなる。センサ2のCPU33は、端子
d2の状態を、端子a2より取り込む。ここでは、HI
GHレベルであるから、スレーブ機器として動作を行う
(図5のステップS9参照)。
On the other hand, the CPU 33 of the sensor 2 also changes the terminal b2 from the LOW level to H
Change to IGH level (point G in FIG. 4A). At this time, the terminal b1 of the CPU 23 of the sensor 1 has already been set to HI.
GH level. Therefore, both the detection terminals d1 and d2 become HIGH level. The CPU 33 of the sensor 2 takes in the state of the terminal d2 from the terminal a2. Here, HI
Since it is at the GH level, it operates as a slave device (see step S9 in FIG. 5).

【0032】以上のようにして、図2の実施例において
も図1の回路と同様の動作を行う事ができる。すなわ
ち、この実施例においては、接続線90の両端をプルア
ップすることにより、アンドゲートの作用を持たせてい
る。従って、この実施例では、一本の接続線を使用する
だけでよく、接続が容易である。なお、本実施例におい
ては、第一の状態をLOWレベルとし、第二の状態をH
IGHレベルとしたが、第一の状態をHIGHレベルと
し、第二の状態をLOWレベルとしてもよい。
As described above, the same operation as the circuit of FIG. 1 can be performed in the embodiment of FIG. That is, in this embodiment, an AND gate function is provided by pulling up both ends of the connection line 90. Therefore, in this embodiment, only one connection line needs to be used, and connection is easy. In this embodiment, the first state is set to LOW level, and the second state is set to H level.
Although the first state is set to the HIGH level, the second state may be set to the LOW level.

【0033】[0033]

【発明の効果】請求項1に係る電子式制御装置において
は、他の装置の検出端子の状態の識別をすることによ
り、マスタ動作又は、スレーブ動作の決定を外部機器に
頼る事なく装置間で行う事が出来る。従って、外部機器
を設ける必要がなく、電源入力を与えるだけでマスタ動
作とスレーブ動作を自動的に決定をすることができる。
In the electronic control device according to the first aspect, the state of the detection terminal of another device is identified, so that the master operation or the slave operation can be determined between the devices without relying on an external device. Can do it. Therefore, there is no need to provide an external device, and the master operation and the slave operation can be automatically determined only by supplying the power input.

【0034】又、これらのマスタ動作、スレーブ動作
は、各々の装置の個性を利用して決定している。この
為、マスタ動作又はスレーブ動作専用の装置を用意しな
くても、確実にマスタ動作又はスレーブ動作の決定を行
う事が出来る。
The master operation and the slave operation are determined by utilizing the individuality of each device. Therefore, the master operation or the slave operation can be reliably determined without preparing a device dedicated to the master operation or the slave operation.

【0035】請求項2に係る電子式制御装置において
は、他の装置への信号出力及び信号取り込みの為、複数
の接続線を用いる必要がなく、他装置との配線が容易に
なる。従って、配線に係る手間やコストの軽減を図る事
ができる。
In the electronic control device according to the second aspect, since a signal is output to and taken in from another device, it is not necessary to use a plurality of connection lines, and wiring to the other device is facilitated. Therefore, it is possible to reduce the labor and cost for wiring.

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

【図1】本発明に係る電子式制御装置の一実施例である
超音波センサの構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of an ultrasonic sensor which is an embodiment of an electronic control device according to the present invention.

【図2】図1に示す超音波センサ間の接続線を一本にし
た場合のブロック図である。
FIG. 2 is a block diagram when a single connection line is used between the ultrasonic sensors shown in FIG. 1;

【図3】図2に示す超音波センサ間の論理回路のブロッ
ク図である。
FIG. 3 is a block diagram of a logic circuit between the ultrasonic sensors shown in FIG. 2;

【図4】図1に示す超音波センサの動作の先後を決定す
る為、及び先後が決定した後のセンサの動作を示すタイ
ミングチャートである。
FIG. 4 is a timing chart showing the operation of the sensor for determining the order of operation of the ultrasonic sensor shown in FIG. 1 and after the order is determined.

【図5】図1に示す電子式制御装置の動作を説明するた
めのフローチャートである。
FIG. 5 is a flowchart for explaining the operation of the electronic control device shown in FIG. 1;

【図6】従来の超音波センサの検出の様子を表わす側面
図である。
FIG. 6 is a side view illustrating a state of detection by a conventional ultrasonic sensor.

【符号の説明】 20、30・・・・・電源回路 23、33・・・・・CPU 24、34・・・・・論理回路 27、37・・・・・抵抗 28、38・・・・・コンデンサ[Description of Signs] 20, 30 ... Power supply circuit 23, 33 ... CPU 24, 34 ... Logic circuit 27, 37 ... Resistance 28, 38 ...・ Capacitor

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G01S 7/00 - 7/64 G01S 15/00 - 17/88 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) G01S 7 /00-7/64 G01S 15/00-17/88

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】電源入力に応じ、各装置毎に異なる固有時
間経過後に検出端子を第一の状態にし、第一の状態にし
た後各装置間でほぼ差異のない出力時間が経過したとき
前記検出端子を第二の状態にする信号出力手段、 前記検出端子が第二の状態になった直後に、他の装置の
検出端子の状態を検知し、当該他の装置の検出端子が第
一の状態の場合はマスタ信号を出力し、第二の状態の場
合はスレーブ信号を出力する状態検知手段、 状態検知手段が出力したマスタ信号又はスレーブ信号を
取り込み、マスタ信号が取り込まれた場合はマスタ動作
を行い、スレーブ信号が取り込まれた場合はスレーブ動
作を行う動作実行手段、 を備えた事を特徴とする電子式制御装置
1. A detection terminal is set to a first state after a lapse of a specific time which differs for each device in response to a power supply input. Signal output means for setting the detection terminal to the second state, immediately after the detection terminal has entered the second state, detects the state of the detection terminal of another device, the detection terminal of the other device is the first A state detection means that outputs a master signal in the case of the state, and outputs a slave signal in the case of the second state. The master signal or the slave signal output by the state detection means is fetched, and the master operation is performed when the master signal is fetched. And an operation executing means for performing a slave operation when a slave signal is taken in, and an electronic control device characterized by comprising:
【請求項2】請求項1の電子式制御装置において、 検出端子と他の装置の検出端子とを単一の接続線で接続
し、 状態検知手段は、前記接続線を通じて他の装置の検出端
子が第一の状態であるか第二状態であるかを検知する、 ことを特徴とする電子式制御装置。
2. The electronic control device according to claim 1, wherein the detection terminal is connected to the detection terminal of another device by a single connection line, and the state detection means is connected to the detection terminal of another device through the connection line. Wherein the electronic control unit detects whether the state is the first state or the second state.
JP4025506A 1992-02-12 1992-02-12 Electronic control unit Expired - Fee Related JP3026668B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4025506A JP3026668B2 (en) 1992-02-12 1992-02-12 Electronic control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4025506A JP3026668B2 (en) 1992-02-12 1992-02-12 Electronic control unit

Publications (2)

Publication Number Publication Date
JPH0688871A JPH0688871A (en) 1994-03-29
JP3026668B2 true JP3026668B2 (en) 2000-03-27

Family

ID=12167956

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4025506A Expired - Fee Related JP3026668B2 (en) 1992-02-12 1992-02-12 Electronic control unit

Country Status (1)

Country Link
JP (1) JP3026668B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1074384C (en) * 1996-04-12 2001-11-07 村田机械株式会社 Ejected paper sorting device and use of on image recording device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7362216B2 (en) 2005-11-17 2008-04-22 Shih-Hsiung Li Reversing sensor without a control box
CN103558603B (en) * 2013-11-05 2017-07-28 同致电子科技(厦门)有限公司 A kind of self-positioning host-free parking auxiliary system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1074384C (en) * 1996-04-12 2001-11-07 村田机械株式会社 Ejected paper sorting device and use of on image recording device

Also Published As

Publication number Publication date
JPH0688871A (en) 1994-03-29

Similar Documents

Publication Publication Date Title
US4528629A (en) Electronic control apparatus with defined reset function
JPS6233637B2 (en)
JP3026668B2 (en) Electronic control unit
KR20060043144A (en) Communication apparatus and control method for the communication apparatus
US6314355B1 (en) Steering angle detecting mechanism
US6232678B1 (en) Electronic appliance
JPH1091222A (en) Synchronizing controller
JP2871330B2 (en) Solenoid control device
CN114270327B (en) Method for identifying position of bus user
EP0886917A1 (en) Reset methods and apparatus for microcontrollers having bidirectional reset lines
EP1041360A2 (en) Sensor system
US6986070B2 (en) Microcomputer that cooperates with an external apparatus to be driven by a drive signal
JP2002369499A (en) Voltage controller
JP2873420B2 (en) Infrared detector
JP3159891B2 (en) CPU runaway detection circuit
JPH11190265A (en) Engine starting device
JPS5918545Y2 (en) Security device signal processing circuit
JP2000221225A (en) Disconnection sensor and image input device having the same
SU1488807A1 (en) Device for switching on and restarting microprocessor
JP3201912B2 (en) Light source inspection device for vehicle display devices
JPH01126046A (en) Data transmission and reception system
JP2000101612A (en) Method and device for setting address of slave device
JPH0318988Y2 (en)
JPH0630534B2 (en) Power supply failure detection circuit
JPH0529894B2 (en)

Legal Events

Date Code Title Description
S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20090128

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20090128

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100128

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20110128

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees