JPH0818597A - Address setting method and device - Google Patents

Address setting method and device

Info

Publication number
JPH0818597A
JPH0818597A JP6173501A JP17350194A JPH0818597A JP H0818597 A JPH0818597 A JP H0818597A JP 6173501 A JP6173501 A JP 6173501A JP 17350194 A JP17350194 A JP 17350194A JP H0818597 A JPH0818597 A JP H0818597A
Authority
JP
Japan
Prior art keywords
address
unit
slave
connection
slave unit
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.)
Withdrawn
Application number
JP6173501A
Other languages
Japanese (ja)
Inventor
Takao Okita
孝雄 沖田
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.)
Azbil Corp
Original Assignee
Azbil 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 Azbil Corp filed Critical Azbil Corp
Priority to JP6173501A priority Critical patent/JPH0818597A/en
Publication of JPH0818597A publication Critical patent/JPH0818597A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

PURPOSE:To set an address of a slave set automatically in the communication system where plural slave sets are connected in series and in branching with one mater set. CONSTITUTION:Each slave set 20 has an address setting function according to a command from a master set 10 and provided with a connection terminal for series connection and branch connection, 1st and 2nd switches 28, 29 are provided between the connection terminals and a switch is initialized to be in OFF state except for a slave set 20A closest to the master set. When the master set calls a slave set to set an address, a switch 28 of the slave set is closed. Thus, a succeeding slave set is called and it is repeated to provide a umber to slave sets in series connection sequentially. When no reply comes from the call, a switch 29 is closed in the order of slave sets provided with a number and a branched slave t 20G or the like is called to set an address.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は通信システムにおけるア
ドレス設定方法および装置に関し、とくに1つの親機に
対して複数個の子機が通信線により直列あるいは並列に
接続された通信システムにおけるアドレス設定方法およ
び装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an address setting method and apparatus in a communication system, and more particularly to an address setting method in a communication system in which a plurality of slave units are connected to one master unit in series or in parallel by communication lines. And equipment.

【0002】[0002]

【従来の技術】1つの親機と複数個の子機が通信線によ
り接続され、親機と子機の間で通信が行なわれる通信シ
ステムが、例えばビル内の空調、照明、防災、防犯等の
監視や運転を行なうシステムへの適用のため、種々検討
されている。この場合、空調等の各種設備を制御するコ
ントローラが子機となるが、通信システムの使用に先立
ってまずそれら個々の子機に個別のアドレスを設定する
必要がある。
2. Description of the Related Art A communication system in which one master unit and a plurality of slave units are connected by a communication line and communication is performed between the master unit and the slave units is, for example, air conditioning in buildings, lighting, disaster prevention, crime prevention, etc. Various studies have been conducted for application to a system for monitoring and operating a vehicle. In this case, a controller that controls various equipment such as an air conditioner serves as a slave, but it is necessary to set an individual address for each slave before using the communication system.

【0003】このアドレス設定を簡単に行ない、しかも
同一アドレスの重複設定や設定忘れを防止するようにし
たアドレス設定システムが特開平4−223633号公
報に提案されている。これは、図8に示すように、1つ
の親機510に対し複数個の子機520が通信線501
により互いに直列に接続された直列通信システムにおい
て、各子機間に各子機間の通信線を開閉するスイッチ回
路530を設け、親機510は電源投入時などに通信線
により各子機520に対し各子機固有のアドレス設定信
号を送信するようになっている。
An address setting system is proposed in Japanese Patent Laid-Open No. 4-223633, in which the address setting is easily performed and the duplicate setting or forgetting of the setting of the same address is prevented. As shown in FIG. 8, this is because a plurality of slave units 520 are connected to one master unit 510 by the communication line 501.
In a serial communication system connected in series with each other, a switch circuit 530 for opening and closing a communication line between the slave units is provided between the slave units, and the master unit 510 is connected to each slave unit 520 through the communication line when the power is turned on. On the other hand, an address setting signal unique to each child device is transmitted.

【0004】各子機520は親機510よりのアドレス
信号を受信してアドレス設定を完了することにより直列
接続の次の子機との間のスイッチ回路530を閉じ、親
機よりの次のアドレス設定信号が次の子機にまで到達す
るようにしてある。なお、図中、540は室内の温度を
計測する温度センサ、550は冷暖房を行なう空調設備
である。これにより、各子機ごとにディップスイッチ等
を設けたハードウエア構成で設定しなくても、親機に近
い子機より順次にアドレス設定が自動的に行なわれ、重
複設定や設定もれなどのミスが防止される。
Each slave unit 520 receives the address signal from the master unit 510 and completes the address setting to close the switch circuit 530 between the slave unit 520 and the next slave unit connected in series. The setting signal reaches the next slave. In the figure, 540 is a temperature sensor for measuring the temperature inside the room, and 550 is air conditioning equipment for cooling and heating. As a result, even if you do not set the hardware configuration with a DIP switch etc. for each slave unit, address settings will be automatically performed sequentially from the slave unit close to the master unit, and duplicate settings and setting leaks etc. Mistakes are prevented.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上記従
来のアドレス設定システムは、親機と子機が直列に接続
された直列通信システムを対象としており、複数の子機
の途中に分岐を有して、子機が親機に対して並列にも接
続されている通信システムでは自動的にアドレス設定で
きないという問題がある。したがって本発明は上記の問
題点にかんがみ、子機の途中から分岐がある通信システ
ムにおいても、各子機にディップスイッチ等を設ける必
要なく、アドレス設定を自動的に行なうことができるア
ドレス設定方法および装置を提供することを目的とす
る。
However, the above-mentioned conventional address setting system is intended for a serial communication system in which a master unit and a slave unit are connected in series, and has a branch in the middle of a plurality of slave units. However, there is a problem that addresses cannot be automatically set in a communication system in which a slave unit is connected in parallel to a master unit. Therefore, in view of the above problems, the present invention provides an address setting method capable of automatically performing address setting without providing a dip switch or the like in each slave even in a communication system in which a slave branches from the middle. The purpose is to provide a device.

【0006】[0006]

【課題を解決するための手段】このため請求項1に記載
の本発明は、1つの親機と、該親機に通信線により互い
に直列に接続された複数個の子機からなる直列接続列
と、この直列接続の子機のいずれかから分岐して接続さ
れた子機からなる分岐接続列とを有し、親機と子機の間
で通信が行なわれる通信システムにおけるアドレス設定
方法であって、前記直列接続列または分岐接続列の一方
における子機を親機に近い順に呼び出して、呼び出しに
応答した子機に親機からアドレス設定信号を送信して当
該子機にアドレスを設定することを繰り返し、呼び出し
に応答がないときは前記直列接続列または分岐接続列の
他方における子機を親機に近い順に呼び出して、親機か
らアドレス設定信号を送信し子機にアドレスを設定する
アドレス設定方法とした。
For this reason, the present invention as set forth in claim 1 is directed to a series connection row comprising one master unit and a plurality of slave units serially connected to the master unit by communication lines. And a branch connection string composed of slave units branched and connected from any of the slave units connected in series, and an address setting method in a communication system in which communication is performed between the master unit and the slave unit. Call the slave unit in one of the series connection branch or the branch connection sequence in the order closer to the master unit, and send an address setting signal from the master unit to the slave unit that responded to the call to set the address to the slave unit. If there is no response to the call, call the slave unit on the other side of the series connection branch or branch connection sequence in the order closer to the master unit, and send the address setting signal from the master unit to set the address to the slave unit. Method and It was.

【0007】またとくに請求項2に記載の発明は、図1
に示すように、1つの親機と、該親機に通信線により互
いに直列に接続された複数個の子機からなる直列接続列
と、該直列接続の子機のいずれかから分岐して接続され
た子機からなる分岐接続列とを有し、親機と子機の間で
通信が行なわれる通信システムにおけるアドレス設定方
法であって、前記直列接続列および分岐接続列の子機の
すべてのアドレスを初期化するとともに、前記親機に最
も近い子機を除き各子機の前記親機との接続を遮断状態
とする第1の処理310と、前記親機から前記初期化さ
れたアドレスの子機を呼び出し、応答の有無をチェック
する第2の処理320と、呼び出しに応答した子機にア
ドレス設定信号を送信する第3の処理330と、前記呼
び出しに応答した子機において、前記アドレス設定信号
に基づいて当該子機のアドレスを新たなアドレスに変更
する第4の処理340と、前記アドレスの変更後、前記
直列接続列または分岐接続列の一方における当該子機の
次の子機と前記親機とを導通状態とする第5の処理35
0とを有して、第2の処理320から第5の処理350
を繰り返して、当該接続列の子機に順次新たなアドレス
を設定するとともに、前記呼び出しに応答がないときは
前記直列接続列または分岐接続列の他方における子機と
前記親機とを導通状態とする第6の処理360を有し、
第6の処理のあと、前記第2の処理320から第4の処
理340を順に実行して当該他方の接続列の子機にアド
レス設定が行なわれることを特徴とするアドレス設定方
法とした。図中、破線は他方の接続列の子機に関わる流
れを示す。
Further, in particular, the invention described in claim 2 is as shown in FIG.
As shown in FIG. 1, one master unit, a series connection string including a plurality of slave units connected to the master unit in series by communication lines, and a branch connection from any of the slave units connected in series And a branch connection sequence consisting of a slave unit, which is an address setting method in a communication system in which communication is performed between the master unit and the slave unit, wherein all the slave units in the serial connection sequence and the branch connection sequence are A first process 310 that initializes the address and sets each slave unit to the connection state with the master unit except the slave unit closest to the master unit, and a process of resetting the initialized address from the master unit. A second process 320 for calling the slave unit and checking whether there is a response, a third process 330 for transmitting an address setting signal to the slave unit that responded to the call, and the address setting in the slave unit that responded to the call. The child based on the signal Process 340 for changing the address of the slave to a new address, and after changing the address, the slave unit next to the slave unit in one of the series connection row or the branch connection row and the master unit are brought into conduction. Fifth processing 35
The second process 320 to the fifth process 350 having 0 and
Repeatedly set a new address to the slave unit of the connection row in sequence, and when there is no response to the call, the slave unit and the master unit in the other of the series connection row or the branch connection row and the master unit are brought into conduction. A sixth process 360 for
After the sixth process, the second process 320 to the fourth process 340 are sequentially executed to set the address to the slave unit of the other connection line, which is an address setting method. In the figure, the broken line shows the flow related to the slave unit in the other connection row.

【0008】請求項3に記載の方法は、とくに上記分岐
した子機が、上記直列接続列(第1次)の子機のいずれ
かから分岐したあと複数個が互いに直列に接続された第
2次直列接続列をなしているときに、まず第1次の直列
接続列の子機について第2の処理320から第5の処理
350を繰り返して、順次新たなアドレスを設定すると
ともに、第6の処理のあと、前記の第2の処理から第5
の処理を繰り返して、第2次直列接続列の子機に順次新
たなアドレスを設定するものとした。
According to a third aspect of the present invention, in particular, the branched slave unit is branched from any one of the slave units of the series connection (first order) and then a plurality of second slave units are connected in series with each other. When forming the next serial connection string, first, the second process 320 to the fifth process 350 are repeated for the slaves in the primary serial connection string to sequentially set new addresses, After the processing, the second processing to the fifth processing
By repeating the above process, new addresses are sequentially set to the slaves in the second series connection row.

【0009】次に請求項4に記載の本発明は、図2に示
すように、1つの親機410と、該親機に通信線401
により互いに直列に接続された複数個の子機420から
なる直列接続列と、該直列接続の子機のいずれかから分
岐して接続された子機430からなる分岐接続列とを有
し、親機と子機の間で通信が行なわれる通信システムに
おけるアドレス設定装置であって、各子機は、第1、第
2および第3の接続端子TI 、TO およびTB と、第1
の接続端子TI と接続されたアドレス設定制御部424
と、アドレス保持部425と、第1の接続端子と第2の
接続端子間および第1の接続端子と第3の接続端子間に
設けられ、それぞれ初期設定がOFFとされる第1のス
イッチS1および第2のスイッチS2とを備え、前記直
列接続は子機の第2の接続端子TO に次の子機の第1の
接続端子TI を順次接続して形成され、前記親機410
に最も近い子機420Aの第1の接続端子TI を親機に
接続してあり、前記分岐は直列接続の子機の第3の接続
端子TB に次の子機の第1の接続端子TI を接続して形
成され、前記親機410は、親機と導通状態になってい
る子機を順次呼び出す呼び出し手段411と、アドレス
設定指令を送信する設定指令手段412と、あらかじめ
優先呼び出し列として前記直列接続列または分岐接続列
の一方が選択設定され、当該選択された接続列が直列接
続列であるときは、子機におけるアドレス設定後、当該
子機の第1のスイッチS1をONさせるとともに、応答
がないときはすでにアドレス設定された子機の順に前記
第2のスイッチS2をONさせ、選択された接続列が分
岐接続列であるときは、子機におけるアドレス設定後、
当該子機の第2のスイッチS2をONさせるとともに、
応答がないときは第1のスイッチS1をONさせる制御
指令を出力するスイッチ指令手段413とを備え、前記
各子機のアドレス設定制御部424は、設定指令手段4
12からのアドレス設定指令に基づくアドレスを設定し
てこれをアドレス保持部425に記憶させるとともに、
スイッチ指令手段413からの制御指令にしたがって前
記第1のスイッチS1および第2のスイッチS2をON
するように構成されたものとした。
Next, according to the present invention as set forth in claim 4, as shown in FIG. 2, one master unit 410 and a communication line 401 connected to the master unit.
And a branch connection string including a slave unit 430 connected by branching from any one of the slave units connected in series, An address setting device in a communication system in which communication is performed between a slave and a slave, wherein each slave has first, second and third connection terminals TI, TO and TB and a first slave.
Address setting control unit 424 connected to the connection terminal TI of
An address holding unit 425, a first switch S1 which is provided between the first connection terminal and the second connection terminal and between the first connection terminal and the third connection terminal and whose initial setting is OFF. And a second switch S2, and the series connection is formed by sequentially connecting the second connection terminal TO of the slave unit to the first connection terminal TI of the next slave unit, and the master unit 410.
The first connection terminal TI of the child device 420A closest to the parent device is connected to the parent device, and the branch connects the first connection terminal TI of the next child device to the third connection terminal TB of the child device connected in series. The master unit 410, which is formed by being connected, has a calling unit 411 for sequentially calling the slave units that are in conduction with the master unit, a setting command unit 412 for transmitting an address setting command, and the serial unit as a priority calling sequence in advance. When one of the connection string or the branch connection string is selected and set, and the selected connection string is the serial connection string, after setting the address in the slave unit, the first switch S1 of the slave unit is turned on and a response is sent. If there is not, the second switch S2 is turned on in the order of the slaves that have already been addressed, and if the selected connection string is a branch connection string, after setting the address in the slave,
While turning on the second switch S2 of the slave unit,
When there is no response, the switch command means 413 for outputting a control command for turning on the first switch S1 is provided, and the address setting control unit 424 of each of the slaves is configured by the setting command means 4
An address based on the address setting command from 12 is set and stored in the address holding unit 425, and
The first switch S1 and the second switch S2 are turned on according to a control command from the switch command means 413.
It was configured to do.

【0010】[0010]

【作用】請求項1の方法においては、まず直列接続列ま
たは分岐接続列の一方における子機を親機に近い順に呼
び出す。例えば直列接続列においては、子機から応答が
あるとその子機に親機からアドレス設定信号を送信して
その子機にアドレスを設定する。これが繰り返されて直
列接続の子機が順次にアドレス設定される。直列接続の
末端の子機までアドレス設定された結果、呼び出しを行
なっても応答がないときには、次に他方の、すなわち分
岐接続列における子機を親機に近い順に呼び出して、応
答のあった子機に親機からアドレス設定信号を送信し、
その子機にアドレスが設定される。直列または分岐の接
続列の一方から各子機に対して順次に呼び出しを行なっ
てアドレス設定するから、自動的にアドレス設定され、
分岐があっても漏れなく設定される。
According to the method of the present invention, first, the slave units in one of the series connection line and the branch connection line are called in the order closer to the master unit. For example, in a serial connection line, when a response is received from a slave unit, an address setting signal is transmitted from the master unit to the slave unit and an address is set in the slave unit. This is repeated and the slave units connected in series are sequentially addressed. As a result of the address setting up to the terminal device of the serial connection, if there is no response even when the call is made, the other device, that is, the child device in the branch connection sequence, is called next in the order closer to the parent device Send the address setting signal from the base unit to the machine,
The address is set to the child device. Addresses are set automatically by calling each slave unit from one of the series or branch connection lines in order to set the address,
Even if there is a branch, it is set without omission.

【0011】請求項2の方法では、すべての子機のアド
レスを初期化し、親機はその初期化されたアドレスで子
機を呼び出し、応答した子機にアドレス設定信号を送信
してその子機のアドレスを新たなアドレスに変更する。
そしてアドレスの変更後、次の子機と親機との間を導通
状態とする。これが繰り返されて直列接続列または分岐
接続列の一方の子機が順次にアドレス設定される。その
接続列の末端の子機までアドレス設定された結果、呼び
出しを行なっても応答がないときには、次に他方の接続
列の子機と親機との間を導通状態として、上記と同じく
初期化されたアドレスで子機を呼び出し、応答した子機
にアドレス設定信号を送信してその子機のアドレスを新
たなアドレスに変更する。アドレス設定が進むごとに親
機と導通状態となる子機が増えるが、親機からの呼び出
しは初期化されたアドレスで行なわれるから、新しく導
通状態とされた1個の子機のみが抽出され、すでにアド
レス変更された子機は影響を受けず、重複設定されるこ
とがない。
According to the method of claim 2, the addresses of all the slave units are initialized, the master unit calls the slave units with the initialized addresses, and sends an address setting signal to the slave units which responded to the slave units. Change the address to a new address.
After changing the address, the next slave unit and the master unit are brought into conduction. By repeating this, one of the slave units in the series connection line or the branch connection line is sequentially addressed. As a result of the address setting up to the terminal device at the end of the connection line, if there is no response even if a call is made, the connection between the child device and the base device on the other connection line is made conductive, and initialization is performed as above. The slave unit is called with the addressed address, and an address setting signal is transmitted to the slave unit that responded to change the address of the slave unit to a new address. As the address setting progresses, the number of slave units that become conductive with the master unit increases, but since the call from the master unit is performed with the initialized address, only one newly connected slave unit is extracted. , The child device whose address has already been changed is not affected and will not be duplicated.

【0012】請求項3の方法では、分岐接続列が互いに
直列に接続された複数個の子機からなるときに、親機に
直列接続した複数個の子機に対すると同様に、呼び出し
からアドレスの変更後次の子機と親機とを導通状態とす
るまでが繰り返され、分岐した直列接続の子機に順次新
たなアドレスが設定される。
According to the method of claim 3, when the branch connection string is composed of a plurality of slave units connected in series with each other, the call-to-address sequence is the same as for the plurality of slave units serially connected to the master unit. After the change, the process until the next slave unit and the master unit are brought into conduction is repeated, and new addresses are sequentially set in the branched slave units connected in series.

【0013】次に請求項4の装置においては、呼び出し
手段411により親機410が呼び出しを行なうと親機
に最も近い子機420A が応答して、これに設定指令手
段412からアドレス設定指令が送信される。子機42
0A ではこれを受けてアドレス設定制御部424がアド
レスを設定してこれをアドレス保持部425に記憶す
る。続いて、例えば直列接続列が優先呼び出し列として
選択されているときは、親機のスイッチ指令手段413
からの制御指令にしたがって、アドレス設定制御部42
4は第1のスイッチS1をONさせ、これにより第1、
第2の接続端子TI 、TO 間が接続され、第2の接続端
子と接続されている次の子機と親機の間が導通状態とな
る。次の呼び出しにこの新たな子機が応答して上記の動
作が繰り返される。直列接続において応答がないとき
は、上記によりすでにアドレス設定された子機の順に、
スイッチ指令手段413から第2のスイッチS2をON
させる制御指令が出される。これにより、分岐接続列の
子機が親機と導通状態とされ、呼び出しに応答し、アド
レス設定指令に基づきアドレス設定制御部424により
アドレスを設定する。
Next, in the apparatus of claim 4, when the calling unit 411 calls the parent device 410, the child device 420A closest to the parent device responds, and the address setting command is transmitted from the setting commanding unit 412. To be done. Cordless handset 42
In 0A, the address setting control unit 424 receives this and sets the address and stores it in the address holding unit 425. Then, for example, when the series connection line is selected as the priority call line, the switch command means 413 of the master unit.
In accordance with a control command from the address setting control unit 42
4 turns on the first switch S1, which causes the first,
The second connection terminals TI and TO are connected, and the next slave unit connected to the second connection terminal and the master unit are brought into conduction. The above-described operation is repeated in response to this new handset device for the next call. When there is no response in the serial connection, in the order of the slave units already addressed by the above,
Turn on the second switch S2 from the switch command means 413.
A control command is issued. As a result, the slave unit in the branch connection line is brought into conduction with the master unit, responds to the call, and the address setting control unit 424 sets the address based on the address setting command.

【0014】直列接続列ならびに分岐接続列の各子機に
対して順次に呼び出しを行なってアドレス設定するか
ら、自動的にアドレス設定され、分岐があっても漏れな
く設定される。上記の親機からの呼び出しについては、
まず各子機のアドレスがすべて同一の固定アドレス値に
初期化され、親機の呼び出し手段は、この固定アドレス
値を指定して子機を呼び出すようにし、子機のアドレス
設定制御部は、設定指令手段からのアドレス設定指令に
したがって固定アドレス値を新たなアドレス値に変更す
るものとすることができる。
Since the slave units in the series connection train and the branch connection train are sequentially called and the addresses are set, the addresses are automatically set and even if there is a branch, the addresses are set without omission. Regarding the call from the base unit above,
First, the addresses of each slave unit are all initialized to the same fixed address value, the calling unit of the master unit specifies the fixed address value to call the slave unit, and the address setting control unit of the slave unit sets The fixed address value can be changed to a new address value in accordance with the address setting command from the command means.

【0015】[0015]

【実施例】図3は本発明が適用される通信システム例を
示す系統図である。1つの親機10に対して第1の通信
線90により複数個の子機20A 、20B、20C 、…
20E 、20F が直列に接続されるとともに、子機20
B と20Eにはそれぞれさらに分岐した第1次分岐列の
子機20G 〜20I と20J 、20K が接続されてい
る。そしてまた、子機20G と20I にはさらに第2次
分岐列の子機20L 、20M と20N が分岐して接続さ
れている。親機10にはまた第2の通信線90A により
同様に複数個の子機20O 〜20Q が直列に接続さ
れ、さらに、子機20O に子機20R が分岐して接続さ
れている。
FIG. 3 is a system diagram showing an example of a communication system to which the present invention is applied. A plurality of slave units 20A, 20B, 20C, ... For one master unit 10 via the first communication line 90.
20E and 20F are connected in series, and the slave unit 20
B and 20E are respectively connected to slave units 20G to 20I, 20J, and 20K of the first branch train which are further branched. Further, the secondary units 20L, 20M and 20N of the secondary branch train are further branched and connected to the secondary units 20G and 20I. Similarly, a plurality of slave units 20O to 20Q are connected in series to the master unit 10 by a second communication line 90A, and a slave unit 20R is branched and connected to the slave unit 20O.

【0016】親機10は、図4に示されるように、CP
U11と、直並変換器14を介して入力端子INP と接
続する受信レジスタ15、並直変換器17を介して出力
端子OUTP と接続する送信レジスタ16を備え、送信
レジスタ16および受信レジスタ15はCPU11に接
続されるとともに、入力端子INP と出力端子OUTP
は通信線90に接続されている。また、入力端子INP
と出力端子OUTP はさらにスイッチ18を介して通信
線90A にも接続可能とされている。
As shown in FIG. 4, the base unit 10 operates as a CP.
U11, a reception register 15 connected to the input terminal INP via the serial-parallel converter 14, and a transmission register 16 connected to the output terminal OUTP via the parallel-serial converter 17, the transmission register 16 and the reception register 15 being the CPU 11 Input terminal INP and output terminal OUTP
Is connected to the communication line 90. Also, input terminal INP
The output terminal OUTP is also connectable to the communication line 90A via the switch 18.

【0017】CPU11にはまた、キーボード13とシ
ステムプログラムメモリ12が接続されて全体制御が行
なわれるようになっている。システムプログラムメモリ
12にはシステムプログラムとともに、アドレス設定プ
ログラムが格納されている。CPU11はキー入力信号
を受けることにより、アドレス設定プログラムをシステ
ムプログラムメモリ12から呼び出してそのプログラム
を実行する。アドレス設定プログラムは通信線90、9
0A により各子機に対してそれぞれ特有の個別のアドレ
ス設定信号を送信するようになっている。
A keyboard 13 and a system program memory 12 are also connected to the CPU 11 so that overall control is performed. The system program memory 12 stores an address setting program together with the system program. Upon receiving the key input signal, the CPU 11 calls the address setting program from the system program memory 12 and executes the program. Address setting program is communication line 90, 9
By 0A, an individual address setting signal unique to each slave unit is transmitted.

【0018】各子機は、図5に示されるように、親機1
0と同様に、CPU21とシステムプログラムメモリ2
2、そしてCPU21に接続された送信レジスタ26お
よび受信レジスタ25を備え、受信レジスタ25は直並
変換器24を介して入力端子INC に接続され、送信レ
ジスタ26は並直変換器27を介して出力端子OUTC
に接続されている。これに加えて子機には、不揮発性メ
モリで構成されたアドレス設定レジスタ23が設けら
れ、それ自身に付与されたアドレスを保持するようにな
っている。
As shown in FIG. 5, each slave unit has a master unit 1
Similar to 0, CPU 21 and system program memory 2
2, and a transmission register 26 and a reception register 25 connected to the CPU 21. The reception register 25 is connected to the input terminal INC via the serial-parallel converter 24, and the transmission register 26 outputs via the parallel-serial converter 27. Terminal OUTC
It is connected to the. In addition to this, the slave unit is provided with an address setting register 23 composed of a non-volatile memory, and holds the address given to itself.

【0019】各子機は、それぞれ接続端子TI 、TO お
よびTB を備えている。接続端子TI は親機、あるいは
親機側すなわち上流側の子機の接続端子TO と接続さ
れ、接続端子TO は下流側の子機の接続端子TI と接続
されることにより、直列の通信系統が形成される。ま
た、接続端子TI を上流側の子機の接続端子TB と接続
して、分岐列の通信系統が形成されている。入力端子I
NC と出力端子OUTC は接続端子TI に接続されてい
るとともに、スイッチ28を介して接続端子TO と接続
され、またスイッチ29を介して接続端子TB と接続さ
れている。スイッチ28、29はCPU21によってそ
のON(閉)、OFF(開)が制御される。これによ
り、接続端子TI と接続端子TO とがスイッチ28によ
り接続可能とされ、接続端子TI と接続端子TB とがス
イッチ29により接続可能となっている。
Each slave unit has connection terminals TI, TO and TB, respectively. The connection terminal TI is connected to the connection terminal TO of the master unit or the master unit side, that is, the upstream side slave unit, and the connection terminal TO is connected to the connection terminal TI of the downstream side slave unit so that a serial communication system is formed. It is formed. Further, the connection terminal TI is connected to the connection terminal TB of the child device on the upstream side to form a branch train communication system. Input terminal I
NC and the output terminal OUTC are connected to the connection terminal TI, connected to the connection terminal TO via the switch 28, and connected to the connection terminal TB via the switch 29. The switches 28 and 29 are controlled by the CPU 21 to be ON (closed) and OFF (open). As a result, the connection terminal TI and the connection terminal TO can be connected by the switch 28, and the connection terminal TI and the connection terminal TB can be connected by the switch 29.

【0020】上記のシステムプログラムメモリ12に格
納されたアドレス設定プログラムに基づいて作動するC
PU11が発明のアドレス設定制御部を構成し、アドレ
ス設定レジスタ23がアドレス保持部を構成している。
そして、スイッチ28が発明の第1のスイッチS1に、
スイッチ29が第2のスイッチS2に該当する。
C operating based on the address setting program stored in the system program memory 12 described above
The PU 11 constitutes the address setting control unit of the invention, and the address setting register 23 constitutes the address holding unit.
Then, the switch 28 becomes the first switch S1 of the invention,
The switch 29 corresponds to the second switch S2.

【0021】次に以上のように構成された通信システム
におけるアドレス設定動作について説明する。まず図6
に、各子機における処理の流れを示す。まずステップ2
00において、子機のそれぞれにおける制御値として、
スイッチ28、29がともに「OFF」とされ、アドレ
ス値が0(ゼロ)に初期化される。なお、これらの初期
化は例えば通信システムの電源が投入された際に行なわ
れるようにすることができ、あるいはまた、このアドレ
ス値0などの初期化は出荷前に工場で行なっておいても
よい。そして電源投入時には、アドレス値=0のとき上
記スイッチ28、29がともに「OFF」となるように
しておく。
Next, an address setting operation in the communication system configured as described above will be described. First, FIG.
Shows the flow of processing in each slave. First step 2
In 00, as the control value in each of the slave units,
Both the switches 28 and 29 are turned off, and the address value is initialized to 0 (zero). It should be noted that these initializations can be performed, for example, when the power supply of the communication system is turned on, or the initialization of the address value 0 and the like may be performed at the factory before shipping. . When the power is turned on, both the switches 28 and 29 are set to "OFF" when the address value = 0.

【0022】ステップ201において、接続端子TI 経
由で入力端子INC に受ける受信信号により、当該子機
自身が親機から呼び出されたかどうかのチェックを行な
う。呼び出しがない間はその監視を繰り返し継続する。
そして当該子機が呼び出されているときは、ステップ2
02で、出力端子OUTC から接続端子TI 経由で通信
線に応答メッセージを送出する。このあとステップ20
3において、アドレス設定指令がきたかどうかをチェッ
クする。指令を受けたときには、ステップ204で自己
のアドレスを指定アドレスに設定変更して、これをアド
レス設定レジスタに保持し、ステップ205へ進む。
アドレス設定指令がなければ、そのままステップ205
に進む。
In step 201, it is checked by the received signal received at the input terminal INC via the connection terminal TI whether or not the child device itself is called by the parent device. The monitoring continues repeatedly while there is no call.
When the child machine is called, step 2
At 02, a response message is sent from the output terminal OUTC to the communication line via the connection terminal TI. After this step 20
At 3, it is checked whether or not an address setting command is received. When the instruction is received, the own address is changed to the designated address in step 204, the address is held in the address setting register, and the process proceeds to step 205.
If there is no address setting command, step 205 as it is.
Proceed to.

【0023】ステップ205では、スイッチ28をON
すべき旨の指令がきたかどうかがチェックされ、その指
令を受けたときにはステップ206で当該スイッチ28
をONにする。これにより、接続端子TI と接続端子T
O とが接続されることになる。このあと、およびステッ
プ205でのチェックでスイッチ28のON指令がない
ときは、ステップ207において、スイッチ29をON
すべき旨の指令がきたかどうかがチェックされ、その指
令を受けたときにはステップ208で当該スイッチ29
をONにする。これにより、接続端子TI と接続端子T
B とが接続されることになる。このあと、あるいはステ
ップ207でのチェックでスイッチ29のON指令がな
いときは、ステップ201に戻って次の呼び出しのため
待機する。
At step 205, the switch 28 is turned on.
It is checked whether or not a command to do so has been received, and if the command is received, the switch 28 in step 206 is received.
Turn on. As a result, the connection terminal TI and the connection terminal T
O and will be connected. After that, and when it is determined in step 205 that there is no ON command for the switch 28, the switch 29 is turned on in step 207.
It is checked whether or not a command to do so has been received, and when the command is received, the switch 29 in step 208 is received.
Turn on. As a result, the connection terminal TI and the connection terminal T
B will be connected. After this, or when there is no ON command for the switch 29 in the check in step 207, the process returns to step 201 and waits for the next call.

【0024】上記のように作動する子機を対象として、
次に親機10における処理の流れを図7に示す。本実施
例では通信システムの電源が投入されたあと、キーボー
ド13からのキー入力によってアドレス設定動作が開始
され、CPU11がアドレス設定プログラムを実行す
る。まずステップ101において、キー入力信号を受け
て所定のパラメータの初期化が行なわれる。ここでは直
列の通信系統および分岐列の通信系統のアドレス変数N
1およびN2がそれぞれ1とされ、親機が接続される通
信線の番号Bが1にセットされる。
Targeting the child machine operating as described above,
Next, FIG. 7 shows a flow of processing in the master device 10. In this embodiment, after the power supply of the communication system is turned on, the address setting operation is started by key input from the keyboard 13, and the CPU 11 executes the address setting program. First, in step 101, a key input signal is received and a predetermined parameter is initialized. Here, the address variable N of the serial communication system and the branch train communication system is used.
1 and N2 are each set to 1, and the number B of the communication line to which the master unit is connected is set to 1.

【0025】親機10においては、次のステップ102
で、B=1すなわち第1の通信系統である通信線90上
のアドレス値「0」を有する子機が呼び出される。そし
て、ステップ103で、アドレス値「0」の子機から応
答の有無がチェックされる。このとき、図3の通信シス
テムにおいては、各子機のスイッチ28、29がすべて
OFFされているから、アドレス値「0」を有して通信
回路が親機に接続されているのは親機に最も近い子機2
0A のみである。子機20A から応答があると、ステッ
プ104において、CPU11はアドレス値「0」を有
するこの子機20A に対してアドレスをN1(=1)に
変更させるアドレス設定信号をその出力端子OUTP か
ら通信線90上に送出する。これにより、前述のように
子機20A のアドレスがN1に設定される。
In the base unit 10, the next step 102
Then, B = 1, that is, the slave unit having the address value “0” on the communication line 90 which is the first communication system is called. Then, in step 103, it is checked whether or not there is a response from the slave unit having the address value "0". At this time, in the communication system of FIG. 3, since the switches 28 and 29 of each slave unit are all turned off, it is the master unit that has the address value “0” and the communication circuit is connected to the master unit. 2 closest to
Only 0A. When there is a response from the slave unit 20A, in step 104, the CPU 11 sends an address setting signal from its output terminal OUTP to the slave unit 20A having the address value "0" to change the address to N1 (= 1). 90 out. As a result, the address of the slave unit 20A is set to N1 as described above.

【0026】その後ステップ105では、アドレスN1
となった子機20A に対してそのスイッチ28をONに
する指令を送信する。そして、ステップ106でN1を
インクリメントしたあとステップ102へ戻る。上記子
機20A のスイッチ28のONにより、通信線90は子
機20B まで延び、ステップ102における呼び出しに
対して子機20B が応答することになる。 以上が繰り
返されて、直列の通信系統における子機20A から20
F までにアドレス1〜6が付番される。
Thereafter, in step 105, the address N1
A command to turn on the switch 28 is transmitted to the slave unit 20A which has become. Then, after incrementing N1 in step 106, the process returns to step 102. When the switch 28 of the slave unit 20A is turned on, the communication line 90 extends to the slave unit 20B, and the slave unit 20B responds to the call in step 102. By repeating the above, the slave units 20A to 20A in the serial communication system
Addresses 1 to 6 are numbered by F.

【0027】このあと子機20F のスイッチ28がON
されても、子機20F の下流側に接続される子機はない
から、アドレス0の呼び出しに対して応答はなく、ステ
ップ102からステップ107へ進む。ステップ107
では、N1がN2と比較され、その値が同一でなけれ
ば、ステップ108に進んで、アドレスN2、すなわち
ここではアドレス1の子機20Aに対してそのスイッチ
29をONにする指令を送信する。そして、ステップ1
09でN2をインクリメントしたあとステップ102へ
戻る。
After that, the switch 28 of the child device 20F is turned on.
However, since there is no child device connected to the downstream side of the child device 20F, there is no response to the calling of the address 0, and the process proceeds from step 102 to step 107. Step 107
Then, N1 is compared with N2, and if the values are not the same, the process proceeds to step 108, and a command to turn ON the switch 29 is transmitted to the address N2, that is, the slave unit 20A having the address 1 here. And step 1
After incrementing N2 at 09, the process returns to step 102.

【0028】上記子機20A のスイッチ29のONによ
り、通信線90は子機20A の接続端子TB まで延び
る。しかし、子機20A の接続端子TB に接続される子
機はないから、アドレス0の呼び出しに対して応答はな
く、ステップ102からまたステップ107を経由し
て、ステップ108に進む。
When the switch 29 of the slave unit 20A is turned on, the communication line 90 extends to the connection terminal TB of the slave unit 20A. However, since there is no cordless handset connected to the connection terminal TB of the cordless handset 20A, there is no response to the call of address 0, and the process proceeds from step 102 to step 107 and then to step 108.

【0029】ステップ108では、今度はアドレス2の
子機20B に対してそのスイッチ29をONにする指令
を送信する。上記子機20B のスイッチ29のONによ
り、通信線90は子機20B から分岐して子機20G ま
で延び、次回のステップ102における呼び出しに対し
て子機20G が応答することになる。この結果、ステッ
プ103からステップ104へ進み、CPU11はこの
子機20G に対してアドレスをN1(=7)に変更させ
るアドレス設定信号をその出力端子OUTP から通信線
90上に送出する。これにより、子機20G のアドレス
がN1に設定される。以後同様のルーチンが繰り返され
て、第1次分岐列の子機20G から20I までにアドレ
ス7〜9が付番される。
In step 108, this time, a command for turning on the switch 29 is transmitted to the slave unit 20B having the address 2. When the switch 29 of the slave unit 20B is turned on, the communication line 90 branches from the slave unit 20B to the slave unit 20G, and the slave unit 20G responds to the call in the next step 102. As a result, the process proceeds from step 103 to step 104, and the CPU 11 sends an address setting signal for changing the address to N1 (= 7) to the slave unit 20G from the output terminal OUTP onto the communication line 90. As a result, the address of the child device 20G is set to N1. Thereafter, the same routine is repeated, and the addresses 7 to 9 are assigned to the slave units 20G to 20I of the primary branch train.

【0030】このあとは、ステップ102から再びステ
ップ107〜109において、アドレスN2をインクリ
メントしながらそのスイッチ29のONを進めることに
より、N2=5に至って子機20E から分岐している子
機20J に通信線90が延びる。こうして、子機20G
の場合と同様にして、子機20J にアドレスN1=10
が設定される。以下同様にして、子機20K 〜20N に
アドレス11〜14が付番される。
After that, in Steps 107 to 109 again from Step 102, by advancing the ON of the switch 29 while incrementing the address N2, N2 = 5 is reached and the slave unit 20J branched from the slave unit 20E is reached. The communication line 90 extends. Thus, the handset 20G
In the same manner as in the above case, the address N1 = 10 is assigned to the child device 20J.
Is set. In the same manner, addresses 11 to 14 are assigned to the slave units 20K to 20N.

【0031】通信線90の系統において、すべての子機
におけるスイッチ28、29がONされたうえ、アドレ
ス値「0」を有する子機の応答がなくなった時点では、
N1=N2となるので、ステップ107からステップ1
10へ進む。ステップ110では、通信線の順番Bがイ
ンクリメントされ、付番対象の通信線が変わる。ステッ
プ111でこのあらたな通信線が存在するかどうかがチ
ェックされ、存在すればステップ102へ進む。この実
施例では第2の通信線90A の系統があるので、ステッ
プ102へ戻って、第1の通信線90の系統におけると
同様の処理が行なわれ、子機20O 〜20R にアドレス
15〜18が付番される。その後、ステップ111で他
の通信線がないことが確認されると、アドレス設定処理
は終了する。
In the system of the communication line 90, when the switches 28 and 29 in all the slave units are turned on and the slave unit having the address value "0" stops responding,
Since N1 = N2, step 107 to step 1
Go to 10. In step 110, the communication line order B is incremented and the numbered communication line is changed. In step 111, it is checked whether or not this new communication line exists, and if it exists, the process proceeds to step 102. In this embodiment, since there is a system of the second communication line 90A, the process returns to step 102 and the same processing as in the system of the first communication line 90 is performed, and the addresses 15-18 are assigned to the slave units 20O-20R. Numbered. After that, when it is confirmed in step 111 that there is no other communication line, the address setting process ends.

【0032】そしてアドレス設定後は、各子機はシステ
ムプログラムメモリ22に格納されたシステムプログラ
ムにより全体制御され、受信レジスタおよび送信レジス
タを介して親機との間の制御情報やデータの授受を行な
う通信端末として機能する。親機についても同様であ
る。また、子機には従来例と同様に、空調コントローラ
など適用対象に応じて温度入力回路や空調設備用出力回
路等が設けられる。上記のステップ102、106が発
明の呼び出し手段を、ステップ103、104が設定指
令手段を、ステップ105およびステップ107〜10
9がスイッチ指令手段を構成している。
After setting the address, each slave unit is entirely controlled by the system program stored in the system program memory 22, and exchanges control information and data with the master unit via the reception register and the transmission register. Functions as a communication terminal. The same applies to the parent device. Further, similar to the conventional example, the slave unit is provided with a temperature input circuit, an output circuit for air conditioning equipment, etc. according to the application target such as an air conditioning controller. The above-mentioned steps 102 and 106 are calling means of the invention, steps 103 and 104 are setting instruction means, and steps 105 and 107 to 10
Reference numeral 9 constitutes a switch command means.

【0033】本実施例は以上のように構成され、1つの
親機と複数個の子機が通信線により接続された通信シス
テムにおいて、各子機が接続端子TI と、それぞれスイ
ッチを介してTI と接続される接続端子TO およびTB
を備え、子機同志の接続端子TO とTI を連結して直列
の通信系統を形成するとともに、子機同志の接続端子T
B とTI を連結して分岐列の通信系統を形成し、親機に
最も近い子機に親機からのアドレス設定信号を送信しア
ドレス設定するとともに、当該子機のスイッチをONさ
せることにより、まず直列の通信系統上の次に連結され
た子機を順次親機に接続するようにして付番するように
した。そして直列の通信系統上の付番が終わると次に分
岐列の通信系統上の子機を順次親機に接続するようにし
て付番するようにした。これにより、親機に直列接続さ
れた通信システムのみならず、子機の途中から分岐があ
る通信システムにおいても、親機に近い子機から順次に
アドレス設定が自動的に行なわれ、設定ミスが生じるこ
ともない。またアドレス設定用のディップスイッチ等を
設ける必要がないから、安価なコストで実施できメンテ
ナンスも容易であるという効果を有する。
This embodiment is configured as described above, and in a communication system in which one master unit and a plurality of slave units are connected by a communication line, each slave unit has a connection terminal TI and TI via a switch. Connection terminals TO and TB connected to
And the connection terminals TO and TI of the slave units are connected to form a serial communication system, and the connection terminals T of the slave units are connected to each other.
By connecting B and TI to form a branch train communication system, sending an address setting signal from the master unit to the slave unit closest to the master unit to set the address, and turning on the switch of the slave unit, First, the slave units connected next to each other in the serial communication system are sequentially connected to the master unit to be numbered. Then, after the numbering on the serial communication system is completed, the slave units on the branch communication system are sequentially connected to the master unit for numbering. As a result, not only in the communication system serially connected to the master unit, but also in the communication system in which there is a branch in the middle of the slave unit, address setting is automatically performed sequentially from the slave unit close to the master unit, resulting in a setting error. It never happens. Further, since it is not necessary to provide a DIP switch or the like for address setting, there is an effect that it can be carried out at low cost and maintenance is easy.

【0034】なお、各子機は不揮発性のメモリあるいは
電池でバックアップしたメモリを備え、設定されたアド
レスをそれぞれ保持するから、一度アドレス設定した後
は、通常は、子機の電源投入毎に初期化とアドレス設定
を繰り返す必要がない。そしてこの場合には、電源投入
の際、0(ゼロ)以外のアドレスがすでに設定されてい
る子機では、そのスイッチ28、29がともにONとな
るようにする。
Since each slave unit has a non-volatile memory or a memory backed up by a battery and holds each set address, once the address is set, it is normally initialized every time the slave unit is powered on. There is no need to repeat activation and address setting. In this case, when the power is turned on, both switches 28 and 29 of the slave unit to which an address other than 0 (zero) has already been set are turned on.

【0035】これにより、例えば子機に故障が発生した
ときにも、その対策後ただちに運転が可能となる。すな
わち、子機の電源をOFFしてその故障した子機を取り
外し、修理した後再取付けすれば、その子機に対するア
ドレスはすでに設定され不揮発性のメモリに記憶されて
おり、他の正常な子機も同じく個々のアドレスを保有し
ているから、システム全体としてなんらの影響も受けず
制御を継続することができる。また、故障した子機を新
しい子機に取り替えるときにも、電源をOFFしてその
故障した子機を取り外し、インタフェースを通じてその
子機に記憶されているアドレスを読み出して、交換する
新しい子機にそのアドレスを書き込んで取り付けること
ができる。なお、親機にも不揮発性のメモリあるいは電
池でバックアップしたメモリを備え、アドレス付与状況
を保持させることにより、システム全体の電源を切った
後再運転する際も、再度のアドレス設定が不要となる。
As a result, even when a failure occurs in the slave unit, for example, the operation can be started immediately after the countermeasure is taken. That is, if the power of the slave unit is turned off, the defective slave unit is removed, repaired, and then reattached, the address for the slave unit is already set and stored in the non-volatile memory. Similarly, since each has an individual address, it is possible to continue control without being affected by the entire system. Also, when replacing a faulty slave unit with a new slave unit, the power is turned off, the faulty slave unit is removed, the address stored in the slave unit is read through the interface, and the new slave unit is replaced. Address can be written and attached. Note that the main unit also has a non-volatile memory or a memory backed up by a battery so that the address assignment status is retained, so that it is not necessary to set the address again when the system is restarted after the power is turned off. .

【0036】なお、上記実施例では、各子機にアドレス
設定後その直列接続用のスイッチ28をONさせるよう
にしてまず直列の通信系統上の付番を実行し、それが終
わると次にスイッチ29をONさせ分岐列の通信系統上
の子機を順次親機に接続して付番するようにしたが、こ
れに限定されず、付番のための優先呼び出し列は直列の
系統か分岐列の系統かをあらかじめ任意に設定すること
ができる。すなわち、分岐列の通信系統を優先するとき
には、子機におけるアドレス設定後、当該子機の第2の
スイッチをONさせるとともに、応答がないときは第1
のスイッチをONさせるようにすればよい。また、分岐
したあとその分岐列に複数個の子機が直列に連なってい
るときには、同様の処理を繰り返し、その最末端の子機
において第2のスイッチをONさせさらに第1のスイッ
チをONさせても応答がないとき、当該分岐列の分岐元
の子機の第1のスイッチがONされる。
In the above embodiment, after setting the address of each slave unit, the serial connection switch 28 is turned on to first perform the serial numbering on the communication system. Although 29 is turned on and the slave units on the communication system of the branch train are sequentially connected to the master unit for numbering, the priority calling train for numbering is not limited to this, and a serial system or branch train is used. It is possible to set in advance whether or not the system. That is, when giving priority to the communication system of the branch train, after setting the address in the slave unit, the second switch of the slave unit is turned on, and when there is no response, the first switch is set.
It suffices to turn on the switch. When a plurality of slave units are connected in series to the branch line after branching, the same process is repeated, and the second switch is turned on and the first switch is turned on in the terminal unit at the end. However, if there is no response, the first switch of the branch source slave unit of the branch train is turned on.

【0037】なおまた、実施例ではすべての子機が接続
端子TO 、TB 、あるいはスイッチ28、29を備える
ものとしたが、これは構成部品としての各子機ユニット
の画一性を主眼としたもので、接続による通信系統の最
末端に位置する子機については、これらは必ずしも必要
ではなく、省略することができる。また、実施例ではキ
ーボード13からのキー入力によってアドレス設定動作
が開始されるものとしたが、通信システムの電源投入に
よりアドレス設定動作が自動的に開始されるようにして
もよい。
In the embodiment, all the slave units are provided with the connection terminals TO, TB or the switches 28, 29, but this is aimed at the uniformity of each slave unit as a component. However, these are not always necessary for the slave unit located at the extreme end of the communication system by connection, and can be omitted. Further, although the address setting operation is started by the key input from the keyboard 13 in the embodiment, the address setting operation may be automatically started by turning on the power of the communication system.

【0038】[0038]

【発明の効果】以上のとおり、本発明は、1つの親機
と、該親機に通信線により互いに直列に接続された複数
個の子機からなる直列接続列と、該直列接続の子機のい
ずれかから分岐して接続された子機からなる分岐接続列
とを有し、親機と子機の間で通信が行なわれる通信シス
テムにおいて、まず直列接続列または分岐接続列の一方
のの子機を親機に近い順に呼び出し、子機から応答があ
るとその子機に親機からアドレス設定信号を送信してそ
の子機にアドレスを設定することを繰り返し、呼び出し
を行なっても応答がないときには、次に他方の接続列の
子機を親機に近い順に呼び出して、応答のあった子機に
親機からアドレス設定信号を送信し、その子機にアドレ
スを設定するようにしたので、自動的にアドレス設定さ
れ、分岐があっても漏れなくアドレスが設定されるとい
う効果を有する。
As described above, according to the present invention, one master unit, a series connection string including a plurality of slave units connected to the master unit in series by communication lines, and the slave unit connected in series. In a communication system having a branch connection string consisting of a slave unit branched and connected from any of the above, in a communication system in which communication is performed between the master unit and the slave unit, first of one of the series connection string or the branch connection string. When the slave unit is called in the order closer to the master unit, and when there is a response from the slave unit, the master unit sends an address setting signal to the slave unit and sets the address to the slave unit repeatedly. , Next, the slave units in the other connection row are called in the order of proximity to the master unit, and an address setting signal is sent from the master unit to the slave unit that responded, and the address is set to that slave unit. Even if there is a branch Address not have the effect that is set.

【0039】またとくにすべての子機のアドレスを初期
化するともに、親機に最も近い子機を除き各子機の親機
との接続を遮断状態とし、親機はその初期化されたアド
レスで子機を呼び出し、応答した子機にアドレス設定信
号を送信してその子機のアドレスを新たなアドレスに変
更するものとし、このアドレスの変更後、一方の接続列
における次の子機と親機との間を導通状態とすることを
繰り返し、呼び出しを行なっても応答がないときには、
次に他方の接続列における子機と親機との間を導通状態
として、上記と同じく初期化されたアドレスでの子機呼
び出しとアドレス変更を行なうものとするときには、ア
ドレス設定が進むごとに親機と導通状態となる子機が増
えても、親機からの呼び出しは初期化されたアドレスで
行なわれるので、新しく導通状態とされた1個の子機の
みが抽出され、同じアドレスが重複設定されることがな
い。また、上記分岐接続列が互いに直列に接続された複
数個の子機からなるときにも、親機に直列接続した複数
個の子機に対すると同様のステップを繰り返すことによ
り、分岐した直列接続の子機に順次新たなアドレスを設
定することができる。
Further, particularly, the addresses of all the slaves are initialized, and the connection with the master of each slave except the slave closest to the master is cut off, and the master uses the initialized address. The slave unit is called, and an address setting signal is sent to the slave unit that responded to change the address of the slave unit to a new address.After changing this address, the next slave unit and master unit in one connection line Repeatedly make the connection between the two, and if there is no response even after calling,
Next, when the slave unit and the master unit in the other connection row are set to the conductive state and the slave unit is called and the address is changed with the same initialized address as above, when the address setting progresses Even if the number of slaves that are in conduction with the machine increases, the call from the master is performed with the initialized address, so only one newly established slave is extracted and the same address is duplicated. Never be done. Further, even when the branch connection row is composed of a plurality of slave units connected in series with each other, by repeating the same steps as for a plurality of slave units serially connected to the master unit, A new address can be sequentially set to the child device.

【0040】本発明アドレス設定装置においては、上記
方法を実施するため、各子機がアドレス設定制御部とア
ドレス保持部により親機からのアドレス設定指令に基づ
いて自己のアドレスを設定保持するよう構成されるとと
もに、子機同志の直列接続および分岐接続のための接続
端子を備えてこれらの接続端子間に第1、第2のスイッ
チを備えている。そして、親機は子機を呼び出しアドレ
ス設定させるごとに、優先呼び出し列として選択された
直列接続列または分岐接続列に対応して、当該子機の第
1のスイッチまたは第2のスイッチの一方をONさせる
制御指令を出力してまず選択された接続列の子機のアド
レス設定を順次進め、呼び出しに対する応答がないとき
はすでにアドレス設定された子機の順に他方のスイッチ
をONさせるように構成して、他方の接続列の子機と導
通するようにした。これにより、子機に2個のスイッチ
を設けるだけの簡単な構成で、分岐を有する通信システ
ムの各子機に自動的にアドレス設定がなされる。
In the address setting device of the present invention, in order to carry out the above method, each slave unit is configured to set and hold its own address by the address setting control unit and the address holding unit based on the address setting command from the parent unit. In addition, the connection terminals for series connection and branch connection of the slave units are provided, and the first and second switches are provided between these connection terminals. Then, each time the parent device sets the calling address of the child device, one of the first switch and the second switch of the child device is corresponding to the serial connection string or the branch connection string selected as the priority calling string. First, the control command to turn on is output, and the address setting of the slaves in the selected connection sequence is sequentially advanced. When there is no response to the call, the other switch is turned on in the order of the slaves that have already been addressed. So that it is electrically connected to the slave unit in the other connection row. As a result, the address is automatically set to each slave unit of the communication system having a branch with a simple configuration in which only two switches are provided in the slave unit.

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

【図1】本発明の処理の流れを示す図である。FIG. 1 is a diagram showing a flow of processing of the present invention.

【図2】本発明の構成を示すブロック図である。FIG. 2 is a block diagram showing a configuration of the present invention.

【図3】本発明が適用される通信システムを示す系統図
である。
FIG. 3 is a system diagram showing a communication system to which the present invention is applied.

【図4】本発明の実施例における親機の構成を示すブロ
ック図である。
FIG. 4 is a block diagram showing a configuration of a parent device in the embodiment of the present invention.

【図5】本発明の実施例における子機の構成を示すブロ
ック図である。
FIG. 5 is a block diagram showing a configuration of a child device according to the embodiment of the present invention.

【図6】子機における処理の流れを示すフローチャート
である。
FIG. 6 is a flowchart showing the flow of processing in a child device.

【図7】親機における処理の流れを示すフローチャート
である。
FIG. 7 is a flowchart showing the flow of processing in the parent device.

【図8】従来例を示す図である。FIG. 8 is a diagram showing a conventional example.

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

10 親機 11、21 CPU 12、22 システムプログラムメモリ 13 キーボード 14、24 直並変換器 15、25 受信レジスタ 16、26 送信レジスタ 17、27 並直変換器 18 スイッチ 20A 〜20R 子機 21 CPU 23 アドレス設定レジスタ 28、29 スイッチ 90、90A 通信線 401 通信線 410 親機 411 呼び出し手段 412 設定指令手段 413 スイッチ指令手段 420、430 子機 424 アドレス設定制御部 425 アドレス保持部 501 通信線 510 親機 520 子機 530 スイッチ回路 540 温度センサ 550 空調設備 INP 入力端子 INC 入力端子 OUTP 出力端子 OUTC 出力端子 S1 第1のスイッチ S2 第2のスイッチ TI 、TO 、TB 接続端子 10 Master 11, 21 CPU 12, 22 System Program Memory 13 Keyboard 14, 24 Serializer 15, 25 Receive Register 16, 26 Transmit Register 17, 27 Parallelizer 18 Switch 20A-20R Slave 21 CPU 23 Address Setting register 28, 29 Switch 90, 90A Communication line 401 Communication line 410 Master unit 411 Calling unit 412 Setting command unit 413 Switch command unit 420, 430 Slave unit 424 Address setting control unit 425 Address holding unit 501 Communication line 510 Master unit 520 Slave unit Machine 530 Switch circuit 540 Temperature sensor 550 Air conditioning equipment INP input terminal INC input terminal OUTP output terminal OUTC output terminal S1 1st switch S2 2nd switch TI, TO, TB connection terminal

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 1つの親機と、該親機に通信線により互
いに直列に接続された複数個の子機からなる直列接続列
と、該直列接続の子機のいずれかから分岐して接続され
た子機からなる分岐接続列とを有し、親機と子機の間で
通信が行なわれる通信システムにおけるアドレス設定方
法であって、前記直列接続列または分岐接続列の一方に
おける子機を前記親機に近い順に呼び出して、呼び出し
に応答した子機に親機からアドレス設定信号を送信して
当該子機にアドレスを設定することを繰り返し、呼び出
しに応答がないときは前記直列接続列または分岐接続列
の他方における子機を前記親機に近い順に呼び出して、
親機からアドレス設定信号を送信し子機にアドレスを設
定することを特徴とするアドレス設定方法。
1. A master unit, a series connection string composed of a plurality of slave units connected in series to the master unit by communication lines, and a branch from any one of the slave units connected in series. And a branch connection sequence composed of a slave unit, which is an address setting method in a communication system in which communication is performed between the master unit and the slave unit, wherein the slave unit in one of the serial connection sequence or the branch connection sequence is Calls are made in the order close to the base unit, the base unit repeatedly transmits an address setting signal to the handset that responded to the call and sets an address to the handset, and when there is no response to the call, the serial connection line or Call the slave unit on the other side of the branch connection sequence in the order of proximity to the master unit,
An address setting method characterized in that an address setting signal is transmitted from a master unit and an address is set in a slave unit.
【請求項2】 1つの親機と、該親機に通信線により互
いに直列に接続された複数個の子機からなる直列接続列
と、該直列接続の子機のいずれかから分岐して接続され
た子機からなる分岐接続列とを有し、親機と子機の間で
通信が行なわれる通信システムにおけるアドレス設定方
法であって、前記直列接続列および分岐接続列の子機の
すべてのアドレスを初期化するとともに、前記親機に最
も近い子機を除き各子機の前記親機との接続を遮断状態
とする第1の処理と、前記親機から前記初期化されたア
ドレスの子機を呼び出し、応答の有無をチェックする第
2の処理と、呼び出しに応答した子機にアドレス設定信
号を送信する第3の処理と、前記呼び出しに応答した子
機において、前記アドレス設定信号に基づいて当該子機
のアドレスを新たなアドレスに変更する第4の処理と、
前記アドレスの変更後、前記直列接続列または分岐接続
列の一方における当該子機の次の子機と前記親機とを導
通状態とする第5の処理とを有して、第2の処理から第
5の処理を繰り返して、当該接続列の子機に順次新たな
アドレスを設定するとともに、前記呼び出しに応答がな
いときは前記直列接続列または分岐接続列の他方におけ
る子機と前記親機とを導通状態とする第6の処理を有
し、第6の処理のあと、前記第2の処理から第4の処理
を順に実行して当該他方の接続列の子機にアドレス設定
が行なわれることを特徴とするアドレス設定方法。
2. A master unit, a series connection string composed of a plurality of slave units connected in series to the master unit by communication lines, and a branch from any one of the slave units connected in series. And a branch connection sequence consisting of a slave unit, which is an address setting method in a communication system in which communication is performed between the master unit and the slave unit, wherein all the slave units in the serial connection sequence and the branch connection sequence are The first process of initializing the address and disconnecting the connection of each child device with the parent device except the child device closest to the parent device; and the child of the initialized address from the parent device. A second step of calling the device and checking for a response, a third process of transmitting an address setting signal to the handset that responded to the call, and a handset that responded to the call based on the address setting signal. The new address of the cordless handset. A fourth process of changing to an address,
After the change of the address, there is a fifth process for bringing the slave unit next to the slave unit in one of the series connection line or the branch connection line and the master unit into a conductive state, and from the second process The fifth process is repeated to sequentially set new addresses to the slaves in the connection row, and when there is no response to the call, the slave and the master in the other of the series connection or the branch connection are connected to each other. A sixth process for bringing the switch into a conductive state, and after the sixth process, the second process to the fourth process are sequentially executed to set an address in the slave unit of the other connection line. Address setting method characterized by.
【請求項3】 1つの親機と、該親機に通信線により互
いに直列に接続された第1次直列接続の複数個の子機
と、該直列接続の子機のいずれかから分岐したあと互い
に直列に接続された第2次直列接続の複数個の子機とか
らなり、親機と子機の間で通信が行なわれる通信システ
ムにおけるアドレス設定方法であって、前記第1次直列
接続の子機および分岐した第2次直列接続の子機のすべ
てのアドレスを初期化するとともに、前記親機に最も近
い子機を除き各子機の前記親機との接続を遮断状態とす
る第1の処理と、前記親機から前記初期化されたアドレ
スの子機を呼び出し、応答の有無をチェックする第2の
処理と、呼び出しに応答した子機にアドレス設定信号を
送信する第3の処理と、前記呼び出しに応答した子機に
おいて、前記アドレス設定信号に基づいて当該子機のア
ドレスを新たなアドレスに変更する第4の処理と、前記
アドレスの変更後、当該子機の直列接続における次の子
機と前記親機とを導通状態とする第5の処理とを有し
て、第2の処理から第5の処理を繰り返して、前記直列
接続の子機に順次新たなアドレスを設定するとともに、
前記呼び出しに応答がないときは前記分岐した子機と前
記親機とを導通状態とする第6の処理を有し、第6の処
理のあと、前記第2の処理から第5の処理を繰り返し
て、前記分岐した第2次直列接続の子機に順次新たなア
ドレスを設定することを特徴とするアドレス設定方法。
3. After branching from one master unit, a plurality of primary series-connected slave units connected to each other in series by communication lines to the master unit, and any one of the series-connected slave units. A method of setting an address in a communication system, comprising a plurality of secondary series-connected slave units connected in series with each other, in which communication is performed between a master unit and a slave unit. First, all addresses of the slave unit and the branched slave units of the secondary series connection are initialized, and the connection of each slave unit to the master unit is cut off except for the slave unit closest to the master unit. And a second process of calling the slave device of the initialized address from the master device and checking whether there is a response, and a third process of transmitting an address setting signal to the slave device that responded to the call. , In the slave unit that responded to the call, the address Fourth processing for changing the address of the slave unit to a new address based on the setting signal, and after the address is changed, the next slave unit in the series connection of the slave unit and the master unit are brought into conduction. The fifth process is repeated, and the second process to the fifth process are repeated to sequentially set new addresses to the slave units connected in series.
When there is no response to the call, it has a sixth process of bringing the branched slave unit and the master unit into a conductive state, and after the sixth process, repeats the second to fifth processes. And a new address is sequentially set to the branched secondary series connected slave units.
【請求項4】 1つの親機と、該親機に通信線により互
いに直列に接続された複数個の子機からなる直列接続列
と、該直列接続の子機のいずれかから分岐して接続され
た子機からなる分岐接続列とを有し、親機と子機の間で
通信が行なわれる通信システムにおけるアドレス設定装
置であって、各子機は、第1、第2および第3の接続端
子と、第1の接続端子と接続されたアドレス設定制御部
と、アドレス保持部と、第1の接続端子と第2の接続端
子間および第1の接続端子と第3の接続端子間に設けら
れ、それぞれ初期設定がOFFとされる第1のスイッチ
および第2のスイッチとを備え、前記直列接続は子機の
第2の接続端子に次の子機の第1の接続端子を順次接続
して形成され、前記親機に最も近い子機の第1の接続端
子を親機に接続してあり、前記分岐は直列接続の子機の
第3の接続端子に次の子機の第1の接続端子を接続して
形成され、前記親機は、親機と導通状態になっている子
機を順次呼び出す呼び出し手段と、アドレス設定指令を
送信する設定指令手段と、あらかじめ優先呼び出し列と
して前記直列接続列または分岐接続列の一方が選択設定
され、当該選択された接続列が直列接続列であるとき
は、子機におけるアドレス設定後、当該子機の第1のス
イッチをONさせるとともに、応答がないときはすでに
アドレス設定された子機の順に前記第2のスイッチをO
Nさせ、選択された接続列が分岐接続列であるときは、
子機におけるアドレス設定後、当該子機の第2のスイッ
チをONさせるとともに、応答がないときは第1のスイ
ッチをONさせる制御指令を出力するスイッチ指令手段
とを備え、前記各子機のアドレス設定制御部は、設定指
令手段からのアドレス設定指令に基づくアドレスを設定
してこれをアドレス保持部に記憶させるとともに、スイ
ッチ指令手段からの制御指令にしたがって前記第1のス
イッチおよび第2のスイッチをONするように構成され
たことを特徴とするアドレス設定装置。
4. A master unit, a series connection row composed of a plurality of slave units serially connected to the master unit by a communication line, and a branch unit connected from any one of the slave units connected in series. An address setting device in a communication system in which communication is performed between a master unit and a slave unit, wherein each slave unit includes a first, a second, and a third slave unit. A connection terminal, an address setting control unit connected to the first connection terminal, an address holding unit, between the first connection terminal and the second connection terminal, and between the first connection terminal and the third connection terminal. A first switch and a second switch, which are provided and whose initial setting is turned off respectively, are provided, and the series connection sequentially connects the first connection terminal of the next slave unit to the second connection terminal of the slave unit. Formed by connecting the first connection terminal of the child device closest to the parent device to the parent device. And the branch is formed by connecting the first connection terminal of the next slave to the third connection terminal of the slave connected in series, and the master is a slave that is in conduction with the master. , A setting command means for transmitting an address setting command, and one of the serial connection string or the branch connection string is selected and set in advance as a priority calling string, and the selected connection string is the serial connection string. In this case, after setting the address in the slave unit, the first switch of the slave unit is turned on, and when there is no response, the second switch is turned on in the order of the slave units that have already been addressed.
N, and when the selected connection string is a branch connection string,
After the address is set in the slave unit, a switch command unit that outputs a control command to turn on the second switch of the slave unit and to turn on the first switch when there is no response is provided, and the address of each slave unit is provided. The setting control unit sets an address based on the address setting command from the setting command unit and stores the address in the address holding unit, and sets the first switch and the second switch according to the control command from the switch command unit. An address setting device, which is configured to be turned on.
【請求項5】 各子機のアドレスがすべて同一の固定ア
ドレス値に初期化され、前記親機の呼び出し手段は、前
記固定アドレス値を指定して子機を呼び出し、子機のア
ドレス設定制御部は、設定指令手段からのアドレス設定
指令にしたがって前記固定アドレス値を新たなアドレス
値に変更するものであることを特徴とする請求項4記載
のアドレス設定装置。
5. The address of each slave unit is initialized to the same fixed address value, and the calling unit of the master unit calls the slave unit by designating the fixed address value, and the address setting control unit of the slave unit. 5. The address setting device according to claim 4, wherein said fixed address value is changed to a new address value in accordance with an address setting command from a setting command means.
【請求項6】 前記分岐接続列の子機が、互いに直列に
接続された複数個の子機からなり、前記選択された接続
列が分岐接続列であるときは、前記スイッチ指令手段
は、分岐接続列の末端の子機において第1のスイッチを
ONさせたあと応答がないとき、当該分岐接続列の分岐
元の子機の第1のスイッチをONさせる制御指令を出力
することを特徴とする請求項4または5記載のアドレス
設定装置。
6. When the slave unit of the branch connection train is composed of a plurality of slave units connected in series with each other, and the selected connection train is a branch connection train, the switch command means branches the branch unit. When there is no response after turning on the first switch in the slave unit at the end of the connection train, a control command for turning on the first switch of the branching slave unit in the branch connection train is output. The address setting device according to claim 4 or 5.
JP6173501A 1994-07-01 1994-07-01 Address setting method and device Withdrawn JPH0818597A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6173501A JPH0818597A (en) 1994-07-01 1994-07-01 Address setting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6173501A JPH0818597A (en) 1994-07-01 1994-07-01 Address setting method and device

Publications (1)

Publication Number Publication Date
JPH0818597A true JPH0818597A (en) 1996-01-19

Family

ID=15961693

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6173501A Withdrawn JPH0818597A (en) 1994-07-01 1994-07-01 Address setting method and device

Country Status (1)

Country Link
JP (1) JPH0818597A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6125365A (en) * 1997-04-07 2000-09-26 Yazaki Corporation Tree structure address setting method for automatically assigning addresses for a plurality of relay units connected in a tree
JP2001267975A (en) * 2000-03-21 2001-09-28 Fukushima Industries Corp Connection structure for communication line in refrigeration and cooling system
JP2007215102A (en) * 2006-02-13 2007-08-23 Denso Corp Communication device
US7856514B2 (en) 2007-01-26 2010-12-21 Hitachi, Ltd. Storage system and method for connecting additional storage apparatus
WO2013038554A1 (en) * 2011-09-16 2013-03-21 Necディスプレイソリューションズ株式会社 Electronic device system
JP2016046545A (en) * 2014-08-19 2016-04-04 ラピスセミコンダクタ株式会社 Semiconductor device, battery monitoring system, and method for setting address to semiconductor device
JP2016181795A (en) * 2015-03-24 2016-10-13 Necディスプレイソリューションズ株式会社 Network system and network setting method
CN111541596A (en) * 2020-04-20 2020-08-14 广州致远电子有限公司 Relay response automatic numbering method, device, equipment and storage medium
JP2020141282A (en) * 2019-02-28 2020-09-03 株式会社安川電機 Slave apparatus and communication system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6125365A (en) * 1997-04-07 2000-09-26 Yazaki Corporation Tree structure address setting method for automatically assigning addresses for a plurality of relay units connected in a tree
JP2001267975A (en) * 2000-03-21 2001-09-28 Fukushima Industries Corp Connection structure for communication line in refrigeration and cooling system
JP2007215102A (en) * 2006-02-13 2007-08-23 Denso Corp Communication device
US7856514B2 (en) 2007-01-26 2010-12-21 Hitachi, Ltd. Storage system and method for connecting additional storage apparatus
WO2013038554A1 (en) * 2011-09-16 2013-03-21 Necディスプレイソリューションズ株式会社 Electronic device system
JP2016046545A (en) * 2014-08-19 2016-04-04 ラピスセミコンダクタ株式会社 Semiconductor device, battery monitoring system, and method for setting address to semiconductor device
JP2016181795A (en) * 2015-03-24 2016-10-13 Necディスプレイソリューションズ株式会社 Network system and network setting method
JP2020141282A (en) * 2019-02-28 2020-09-03 株式会社安川電機 Slave apparatus and communication system
CN111541596A (en) * 2020-04-20 2020-08-14 广州致远电子有限公司 Relay response automatic numbering method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
JPH0818597A (en) Address setting method and device
JP3018929B2 (en) Air conditioner transmission equipment
JPH01135150A (en) Node address setting system for network
JPH03196737A (en) Communication system and repeater used for the communication system
JPH02128540A (en) Method and system for data communication
CN112685340B (en) Method and device for automatically starting EtherCat redundancy function
JPH04223633A (en) Address setting system for 1:n serial communication system
KR200183008Y1 (en) Network automatic recovery device of local area information network system
JPH11127179A (en) Duplicate communication controller
JP2564397B2 (en) Redundant system data output device
JPH06272944A (en) Address setting apparatus for air conditioning apparatus
JP2500006Y2 (en) Programmable controller system
JPH0697948A (en) Address setting system
JPH10308988A (en) House code setting method and communication system
JPH0514495A (en) Extension test system for line control section
JPH1141672A (en) Remote control system
JPH0360239B2 (en)
JPS61280143A (en) Check device with spurious signal input function
JPH09326811A (en) Termination resistance setting device
JPH0653944A (en) Line switching control system
CN111245693A (en) Time-sharing data transmission system and transmission method
JPH0898275A (en) Communication method for multiplex transmission system
JPH04185138A (en) Communication controller
JPS63116042A (en) Address setting method in air conditioning system
JPH05304696A (en) Programmable controller system

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20010904