JP2616503B2 - Address setting device - Google Patents

Address setting device

Info

Publication number
JP2616503B2
JP2616503B2 JP3000443A JP44391A JP2616503B2 JP 2616503 B2 JP2616503 B2 JP 2616503B2 JP 3000443 A JP3000443 A JP 3000443A JP 44391 A JP44391 A JP 44391A JP 2616503 B2 JP2616503 B2 JP 2616503B2
Authority
JP
Japan
Prior art keywords
address
slave
slave device
request signal
setting
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
JP3000443A
Other languages
Japanese (ja)
Other versions
JPH04242851A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP3000443A priority Critical patent/JP2616503B2/en
Publication of JPH04242851A publication Critical patent/JPH04242851A/en
Application granted granted Critical
Publication of JP2616503B2 publication Critical patent/JP2616503B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/11Plc I-O input output
    • G05B2219/1113Address setting

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、マスタ・スレーブ型の
制御形態をとり、マスタ装置に対し共通の信号線路に複
数のスレーブ装置が接続される装置間接続方式をとるシ
ステムにおけるスレーブ装置の共通信号線路上のアドレ
ス設定方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention employs a master-slave control mode, in which a plurality of slave devices are connected to a master device through a common signal line. The present invention relates to an address setting method on a signal line.

【0002】近年、情報処理システムに於ける長時間連
続運転の必要性がますます重要となっている。前記の様
な装置間接続方式により構成される情報処理システムに
於いても同様であり、その結果としてシステム稼働状態
でのスレーブ装置の増設あるいは撤去、即ち、活性増設
・撤去が可能である事が必要とされ始めている。
[0002] In recent years, the need for long-time continuous operation in information processing systems has become increasingly important. The same applies to the information processing system configured by the above-described inter-device connection method, and as a result, it is possible to add or remove slave devices while the system is operating, that is, to actively add or remove. It is starting to be needed.

【0003】[0003]

【従来の技術】図3は従来のスレーブ装置間のアドレス
設定方式を説明する図である。マスタ・スレーブ型の装
置間接続方式をとるシステムに於けるスレーブ装置のア
ドレス設定方式の基本方式は、本願出願人が先願してい
る特開平01−135150号公報『ネットワークのノ
ードアドレス設定方式』に開示されている。以下、同公
開公報からの抜粋を記述する。
2. Description of the Related Art FIG. 3 is a diagram for explaining a conventional address setting method between slave devices. The basic method of the address setting method of the slave device in the system using the master-slave type device connection method is disclosed in Japanese Patent Application Laid-Open No. 01-135150, entitled "Network Node Address Setting Method", which was previously filed by the present applicant. Is disclosed. The following is an excerpt from the publication.

【0004】図3において、1 はマスタノード、3,3aは
共通の信号線路、2 はスレーブノード、21,22 は信号伝
送の断・接を行うスイッチ、24は制御信号発生部、26は
アドレス設定部を示している。
In FIG. 3, 1 is a master node, 3 and 3a are common signal lines, 2 is a slave node, 21 and 22 are switches for disconnecting / connecting signal transmission, 24 is a control signal generator, and 26 is an address. 4 shows a setting unit.

【0005】なお、本図3にはスレーブノードとして1
つの構成だけを示しているが、実際には同様のノードが
順次複数個接続される。このアドレス設定方式は、各ス
レーブノード 2内を通る共通信号線路 3,3a 中に信号伝
送の断・接を行うスイッチ 21,22を設け、1個のマスタ
ノード 1が1づつスレーブノード 2のアドレスを設定し
ながら該スイッチ 21,22を接状態にして隣接するスレー
ブノード 2を順次ネットワークに結合するものである。
Note that FIG.
Although only one configuration is shown, actually, a plurality of similar nodes are sequentially connected. In this address setting method, switches 21 and 22 for disconnecting / connecting signal transmission are provided in common signal lines 3 and 3 a passing through each slave node 2, and one master node 1 is provided with one address of slave node 2. The switches 21 and 22 are brought into contact with each other while the adjacent slave nodes 2 are sequentially connected to the network.

【0006】[0006]

【発明が解決しようとする課題】該アドレスの設定は、
マスタノード 1が「アドレス設定コマンド」を発行する
ことで行われるが、該「アドレス設定コマンド」は、各
スレーブノード 2に固有な識別子(ID) (アドレス) を設
定するコマンドであるので、該スレーブノード 2を選択
する機能がなく、各スレーブノード 2は該スレーブノー
ド 2に設定されるアドレスとは無関係に取り込むことが
でき、該アドレスが一度設定されると、再度、アドレス
を設定することができないように構成されている。
The setting of the address is as follows.
This is performed by the master node 1 issuing an “address setting command”. Since the “address setting command” is a command for setting a unique identifier (ID) (address) for each slave node 2, There is no function to select node 2, and each slave node 2 can take in regardless of the address set in slave node 2, and once the address is set, it cannot be set again It is configured as follows.

【0007】若し、システム稼働中にスレーブノード 2
の増設, あるいは、撤去作業を行った場合、図示されて
いないシステムコンソールから、人手により、マスタノ
ード1にアドレス設定を指示し、該マスタノード1のアド
レス設定指示部 11 から、上記「アドレス設定コマン
ド」を発行し、唯1回のアドレス設定を行うことによ
り、該増設したスレーブノード2にあるアドレスを設定
することができる。
[0007] If the slave node 2
When an extension or removal work is performed, an address setting is manually instructed to the master node 1 from a system console (not shown), and the above-mentioned “address setting command” is sent from the address setting instructing unit 11 of the master node 1. Is issued and the address is set only once, so that the address in the added slave node 2 can be set.

【0008】然しながら、この従来方式では、人手によ
る、アドレス設定である為、設定ミスが起こる可能性が
ある。従って、このアドレス設定ミスを解消する為、従
来方式においては、電源の再投入を行い、人手による再
割り付け指示が必要であった。該再割り付け指示後は、
マスタノード 1から、自動的に、各スレーブノード 2
に、例えば、順番にアドレスが設定されることになる。
However, in the conventional method, since the address is manually set, a setting error may occur. Therefore, in order to eliminate the address setting error, in the conventional system, the power supply must be turned on again and a manual re-allocation instruction is required. After the reallocation instruction,
From master node 1 automatically, each slave node 2
For example, addresses are set in order.

【0009】従って、この従来方式では、電源の再投入
を必要とする為、最近必要とされるようになってきた、
活性増設・撤去ができないという問題があった。本発明
は上記従来の欠点に鑑み、マスタ・スレーブの制御形態
をとり、マスタ装置に対して共通の信号線路に複数のス
レーブ装置が接続される装置間接続方式をとるシステム
において、活性増設・撤去を行っても、正しくアドレス
を設定することができる装置間のアドレス設定方式を提
供することを目的とするものである。
Therefore, in the conventional method, since the power supply needs to be turned on again, it has recently become necessary.
There was a problem that active expansion / removal was not possible. SUMMARY OF THE INVENTION In view of the conventional disadvantages described above, the present invention employs a master-slave control mode, and in a system in which a plurality of slave devices are connected to a common signal line with respect to a master device, a system in which active expansion / removal is performed. It is an object of the present invention to provide an address setting method between devices that can set an address correctly even if the above operation is performed.

【0010】[0010]

【課題を解決するための手段】上記の問題点は下記の如
くに構成されたアドレス設定装置によって解決される。
The above problems are solved by an address setting device configured as follows.

【0011】[0011]

【0012】マスタ装置 1と信号線路 3,3a により接続
された複数のスレーブ装置 2にそれぞれ設けられるアド
レス設定装置であって、各スレーブ装置 2からのアドレ
ス要求信号を受信する手段 14 と、各スレーブ装置 2の
アドレスをクリアするアドレスクリア指示を送信する手
段 15 と、各スレーブ装置 2に設定するアドレスを送信
する手段 11 とを備えたマスタ装置 1に対して、アドレ
ス未割り付け状態時にアドレス割り付け要求信号を送
出する手段 (要求信号発生部 27)と、前記アドレス割り
付け要求信号を送出している間は、隣接するスレーブ
装置2との信号線路を断状態に制御する手段 (スイッチ
21,22および制御信号発生部24)と、マスタ装置 1から送
信されてきたアドレスを設定する手段 (アドレス設定部
26)と、マスタ装置 1から送信されてきたアドレスクリ
ア指示 (アドレスクリア指示部15)により前記アドレス
設定手段 (アドレス設定部 26)のアドレスをクリアする
手段 (アドレスクリア検出部 28)とを備え、 前記マスタ
装置 1に接続されたスレーブ装置 2の少なくとも1つが
アドレス未割り付け状態となった場合に、該スレーブ装
置 2内のアドレス設定装置からのアドレス割り付け要求
信号を受信したマスタ装置 1が送信するアドレスクリ
ア指示と、それに続くアドレスを受信することで、スレ
ーブ装置 2のアドレスを再設定するように構成する。
[0012] A master device 1 and the signal line, respectively provided are an address setting device a plurality of the slave device 2 connected by 3, 3a, address from the slave devices 2
Means 14 for receiving the slave request signal and
How to send an address clear instruction to clear the address
Step 15 and send the address to be set for each slave device 2
The master device 1 and means 11 for, while the the means for delivering an address allocation request signal when the address unassigned state (request signal generation unit 27), and sends the address assignment request signal, the adjacent Means for controlling the signal line with the slave device 2 to be disconnected (switch
21, 22 and control signal generator 24) and means for setting the address transmitted from master device 1 (address setting unit
26), and a means (address clear detection unit 28) for clearing the address of the address setting means (address setting unit 26) by an address clear instruction (address clear instruction unit 15) transmitted from the master device 1 , The master
At least one of the slave devices 2 connected to device 1
If the address becomes unassigned, the slave device
Address allocation request from the address setting device in unit 2
The address clear transmitted by the master device 1 that has received the signal
By receiving an instruction and the address following it,
It is configured to reset the address of the slave device 2 .

【0013】[0013]

【作用】本発明においては、各スレーブ装置には、アド
レスが未割り付けの状態時にマスタ装置に対しアドレス
割り付け要求信号を送出する機構と、マスタ装置から
の指示によりアドレスのクリアを行う機構を設ける。
In the present invention, each slave device is provided with a mechanism for transmitting an address allocation request signal to the master device when an address is not allocated, and a mechanism for clearing an address in accordance with an instruction from the master device.

【0014】又、マスタ装置には、スレーブ装置から上
がってきたアドレス割り付け要求信号を検出する機構
と、全スレーブ装置に対してアドレスのクリアを指示す
る機構とを設ける。
The master device is provided with a mechanism for detecting an address allocation request signal sent from a slave device and a mechanism for instructing all slave devices to clear an address.

【0015】従って、システム稼働中にスレーブ装置が
増設されたことにより、該増設されたスレーブ装置のア
ドレスが設定されていないことに起因して、上記アドレ
ス割り付け要求信号が上がってきた場合、マスタ装置
は、例えば、全スレーブ装置に対しアドレスのクリアを
指示した後、アドレスの再割り付けを行うようにしてい
る。
Accordingly, when the slave device is added during the operation of the system and the address allocation request signal is raised due to the address of the added slave device not being set, the master device is For example, after instructing all slave devices to clear addresses, the addresses are reassigned.

【0016】即ち、システム稼働中に於いてスレーブ装
置の増設作業を行った場合は、アドレス未割り付けの増
設スレーブ装置からアドレス割り付け要求信号が上が
ってくるので、それをトリガとして全スレーブ装置のア
ドレスをクリアした後、再割り付けを行う。
In other words, when the operation of adding a slave device is performed while the system is operating, an address allocation request signal is sent from the additional slave device to which no address has been allocated. After clearing, reassign.

【0017】又、システム稼働中に於いてスレーブ装置
の撤去作業を行った場合は、システムに電源投入時に登
録されたスレーブ装置のアドレスの内、マスタ装置の呼
びかけに対し応答しないスレーブ装置が発生するので、
それをトリガとして全スレーブ装置のアドレスをクリア
した後、再割り付けを行う。
If the slave device is removed while the system is operating, some slave devices that do not respond to the call from the master device may occur among the addresses of the slave devices registered when the system is powered on. So
With this as a trigger, the addresses of all slave devices are cleared, and then reassigned.

【0018】又、他の方式として、システム稼働中に於
いてスレーブ装置の増設作業を行った場合は、アドレス
未割り付けの増設スレーブ装置からアドレス割り付け要
求信号が上がってくるので、それをトリガとして、全
スレーブ装置のアドレスをセンスして、欠番, あるい
は、最後のアドレスの次のアドレスから、任意のアドレ
スを選択して、該増設されたスレーブ装置に、上記セン
スしたアドレスとは異なるアドレスを設定するようにし
てもよい。
As another method, when an extension operation of a slave device is performed while the system is operating, an address assignment request signal is sent from an extension slave device to which no address has been assigned. By sensing the addresses of all the slave devices, selecting an arbitrary address from the missing number or the address next to the last address, and setting an address different from the sensed address in the added slave device. You may do so.

【0019】若し、システム稼働中に於いてスレーブ装
置の撤去作業を行った場合は、システムに電源投入時に
登録されたスレーブ装置のアドレスの内、マスタ装置の
呼びかけに対し応答しないスレーブ装置が発生するの
で、それをトリガとして上記アドレスのセンスを行い、
アドレスの欠番を認識するのみとするようにしてもよ
い。
If the slave device is removed while the system is operating, some slave devices that do not respond to the call from the master device may occur among the addresses of the slave devices registered when the system is powered on. So, using that as a trigger, the above address is sensed,
You may make it only recognize the missing number of an address.

【0020】このように作用するので、本発明において
は、スレーブ装置の増設・撤去に伴い、各スレーブ装置
に対するアドレスの割り付け (再割り付けも含む) を、
電源投入等の人手を介することなく行うことができ、所
謂、活性増設・撤去を行うことができる効果が得られ
る。
With the above-described operation, in the present invention, the assignment (including reassignment) of addresses to each slave device is performed in accordance with the addition / removal of the slave device.
This operation can be performed without manual operation such as turning on the power, and an effect of so-called active addition / removal can be obtained.

【0021】[0021]

【実施例】以下本発明の実施例を図面によって詳述す
る。図1は、本発明の構成を示す一実施例を示した図で
あり、図2は本発明によるスレーブ装置の増設・撤去時
の動作を説明する図である。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. FIG. 1 is a diagram showing an embodiment showing the configuration of the present invention, and FIG. 2 is a diagram for explaining the operation when adding / removing a slave device according to the present invention.

【0022】本発明においては、各スレーブ装置 2に
は、アドレスが未割り付けの状態時にマスタ装置 1に対
しアドレス割り付け要求信号を送出する要求信号発生
部 27と、マスタ装置 1からの指示によりアドレスのク
リアを行うアドレスクリア検出部 28 とを設ける。
In the present invention, each slave device 2 has a request signal generating section 27 for transmitting an address allocation request signal to the master device 1 when an address is not allocated, and an address assignment in accordance with an instruction from the master device 1. An address clear detector 28 for clearing is provided.

【0023】又、マスタ装置 1には、スレーブ装置 2か
ら上がってきたアドレス割り付け要求信号を検出する
要求信号検出部 14 と、全スレーブ装置 2に対しアドレ
スのクリアを指示するアドレスクリア指示部 15 とを設
ける。
The master device 1 also includes a request signal detector 14 for detecting an address allocation request signal sent from the slave device 2 and an address clear instructor 15 for instructing all slave devices 2 to clear the address. Is provided.

【0024】そして、システム稼働中にスレーブ装置が
増設されたことにより、該増設されたスレーブ装置のア
ドレスが設定されていないことに起因して、アドレス割
り付け要求信号が上がってきた場合、マスタ装置 1
は、例えば、全スレーブ装置 2に対しアドレスのクリア
を指示した後、該全スレーブ装置 2から上がってきる要
求信号が消える迄、手前に接続されているスレーブ装
置 2から順番に、アドレスの再割り付けを行うようする
手段が本発明を実施するのに必要な手段である。尚、全
図を通して同じ符号は同じ対象物を示している。
When the slave device is added while the system is operating and the address of the added slave device is not set and the address assignment request signal is raised, the master device 1
For example, after instructing all slave devices 2 to clear addresses, until the request signal coming out of all slave devices 2 disappears, the addresses are reassigned in order from the slave device 2 connected in front. Is a means necessary for carrying out the present invention. Note that the same reference numerals indicate the same object throughout the drawings.

【0025】以下、図1,図2を用いて、本発明のアド
レス設定装置を説明する。尚、請求項中の「アドレス割
り付け要求信号を送出する手段」、「信号線路を断状態
に制御する手段」、「アドレスを設定する手段」、「ア
ドレスをクリアする手段」は、下記実施例中の「要求信
号発生手段 27 」、「スイッチ 21,22および制御信号発
生部 24 」、「アドレス設定部 26 」、「アドレスクリ
ア検出部 28 」にそれぞれ対応している。先ず、図1に
おいて、スレーブ装置 2は共通信号線路 3,3a を介して
マスタ装置 1と接続されている。マスタ装置 1は、例え
ば、アドレス設定指示部 11 と、応答検出部 12 と、イ
ンタフェース部 13 と要求信号検出部 14 と、アドレ
スクリア指示部 15 とから構成される。
The address setting device of the present invention will be described below with reference to FIGS. In the claims, "Address assignment"
Means for sending the attachment request signal '', `` The signal line is disconnected
Control means, address setting means,
The "means for clearing the dress" corresponds to the "request signal" in the following embodiment.
Signal generation means 27 "," switches 21, 22 and control signal generation
Raw section 24, address setting section 26, address clear
A detection unit 28 ". First, in FIG. 1, a slave device 2 is connected to a master device 1 via common signal lines 3, 3a. The master device 1 includes, for example, an address setting instructing unit 11, a response detecting unit 12, an interface unit 13, a request signal detecting unit 14, and an address clear instructing unit 15.

【0026】又、スレーブ装置 2は、スイッチ 21,22
と、処理装置 23 とから構成され、処理装置 23 内に
は、例えば、制御信号発生部 24 と、送受信インタフェ
ース部 25 と、アドレス設定部 26 と、要求信号発生部
27 と、アドレスクリア検出部 28 とが置かれている。
The slave device 2 includes switches 21, 22
And a processing unit 23. In the processing unit 23, for example, a control signal generation unit 24, a transmission / reception interface unit 25, an address setting unit 26, and a request signal generation unit
27 and an address clear detection unit 28.

【0027】マスタ装置 1とスレーブ装置 2の電源が投
入された時、スレーブ装置 2はアドレスが未割り付け状
態にあるので、本発明の場合、要求信号発生部 27 にお
いてアドレス割り付け要求信号が発生し、送受信イン
タフェース部 25 及び共通信号線路 3を介してマスタ装
置 1に送出される。
When the power of the master device 1 and the slave device 2 is turned on, the address of the slave device 2 is not yet allocated. Therefore, in the present invention, an address allocation request signal is generated in the request signal generator 27, The data is transmitted to the master device 1 via the transmission / reception interface unit 25 and the common signal line 3.

【0028】マスタ装置 1は、要求信号検出部 14 にお
いて、インタフェース部 13 を介して共通信号線路 3上
にアドレス割り付け要求信号を検出すると、アドレス
設定指示部 11 から共通信号線路 3を介して、スレーブ
装置 2のアドレス設定部 26 に対しアドレスの設定を行
う。
When the request signal detecting section 14 detects an address allocation request signal on the common signal line 3 via the interface section 13, the master device 1 sends the slave signal via the common signal line 3 from the address setting instructing section 11. The address is set in the address setting unit 26 of the device 2.

【0029】スレーブ装置 2は、アドレス設定部 26 に
アドレスが設定されると、上記要求信号発生部 27 に対
して、上記アドレス割り付け要求信号のリセット及
び、制御信号発生部 24 に対しスイッチ 21,22の "オ
ン" を指示する。
When an address is set in the address setting section 26, the slave device 2 resets the address allocation request signal to the request signal generating section 27 and switches 21 and 22 to the control signal generating section 24. Command "on".

【0030】該スイッチ 21,22が "オン" すると、共通
信号線路 3には、隣接スレーブ装置2との信号線路 3aが
接続される。新たに接続された隣接スレーブ装置 2から
マスタ装置 1に対しアドレス割り付け要求信号が送出
されている為、マスタ装置1は、該接続された隣接スレ
ーブ装置 2に対し、上記最初のスレーブ装置 2とは別の
アドレスを同じ手順で割付ける。以下、スレーブ装置 2
が共通信号線路 3に接続される毎に、マスタ装置 1は、
互いに異なるアドレスを割り付け続ける。
When the switches 21 and 22 are turned on, the common signal line 3 is connected to the signal line 3 a with the adjacent slave device 2. Since an address assignment request signal has been sent from the newly connected adjacent slave device 2 to the master device 1, the master device 1 sets the connected adjacent slave device 2 different from the first slave device 2 described above. Assign another address in the same procedure. Hereinafter, slave device 2
Each time is connected to the common signal line 3, the master device 1
Continue to assign different addresses to each other.

【0031】マスタ装置 1は共通信号線路 3,3a に接続
されるスレーブ装置 2がなくなって、上記アドレス割り
付け要求信号が下った("オフ")ことを検出すると、ス
レーブ装置 2に対するアドレスの割り付けが終了した事
を認識する。
When the master device 1 detects that the slave device 2 connected to the common signal lines 3 and 3a has disappeared and the address assignment request signal has dropped ("OFF"), the address assignment to the slave device 2 is performed. Recognize the end.

【0032】本発明のマスタ装置 1, 及び、スレーブ装
置 2では、上記のように動作するので、図2に示す様な
場合、即ち、電源投入時のアドレスの割り付けが終了し
てシステムが稼働中の状態で、スレーブ装置 2の増設,
或いは、撤去が行われた場合の動作について述べる。
Since the master device 1 and the slave device 2 of the present invention operate as described above, in the case shown in FIG. 2, that is, when the address allocation at power-on is completed and the system is operating. The slave device 2 in the state of
Alternatively, an operation when the removal is performed will be described.

【0033】増設の場合は、増設されたスレーブ装置 2
a からアドレス割り付け要求信号が発生した事を、撤
去(あるいは障害発生)の場合は、マスタ装置 1の呼び
かけに対し、スレーブ装置 2a が応答しなくなった事
を、起因としてマスタ装置 1は全スレーブ装置 2,2a の
アドレスの再割り付けを行う。
In the case of extension, the added slave device 2
In the case of the removal of the address assignment request signal from a, the removal (or the occurrence of a fault), the slave device 2a no longer responds to the call of the master device 1, and all the slave devices Reassign addresses 2 and 2a.

【0034】具体的には、図1において、マスタ装置 1
は、既にアドレスが割り付けられているスレーブ装置 2
のアドレスクリア検出部 28 に対し、アドレスクリア指
示部15 からアドレスのクリアを指示する。
More specifically, in FIG.
Is the slave device 2 to which the address has already been assigned.
The address clear instructing section 15 instructs the address clear detecting section 28 to clear the address.

【0035】スレーブ装置 2はアドレスクリア検出部 2
8 が、該マスタ装置 1からのアドレスクリア指示を検
出すると、アドレス設定部 26 に設定されているアドレ
スをクリアし、要求信号発生部 27 からアドレス割り付
け要求信号を発生し、制御信号発生部 24 からスイッ
チ 21,22をオフする。
The slave device 2 includes an address clear detector 2
8 detects the address clear instruction from the master device 1, clears the address set in the address setting unit 26, generates an address allocation request signal from the request signal generation unit 27, and outputs the address allocation request signal from the control signal generation unit 24. Turn off switches 21 and 22.

【0036】以上の手順で、全スレーブ装置 2はアドレ
ス未割り付け状態となり、この後、前述したアドレスの
割り付け動作が繰り返される。撤去の場合、該撤去され
たことを、マスタ装置 1から特定の呼び掛けコマンド
対し、該撤去されたスレーブ装置 2からの応答がない
ことをトリガとして、全スレーブ装置 2,2a のアドレス
の再割り付けを行う。該再割り付けの動作は、上記増設
の場合と同じである。
In the above procedure, all the slave devices 2 are addressed.
In this state, the address is not allocated, and thereafter, the above-described address allocation operation is repeated. For removal, that is the removal, against the specific interrogation command from the master device 1, as a trigger that there is no response from the slave device 2 that is the removal, re-addresses of all slave devices 2,2a Make the assignment. The operation of the reallocation is the same as in the case of the above expansion .

【0037】上記の実施例においては、スレーブ装置 2
a の増設, 或いは、撤去が行われた場合、全スレーブ装
置 2,2a のアドレスをクリアして、再割り付けを行う例
で説明したが、例えば、該増設されたスレーブ装置 2a
からアドレス割り付け要求信号が発生した事を、撤去
(あるいは障害発生)の場合は、マスタ装置 1の呼びか
けに対し、スレーブ装置 2a が応答しなくなった事を起
因として、全スレーブ装置 2,2a のアドレスをセンスし
て、欠番, 或いは、最後番のアドレスを認識(例えば、
従属接続されているスレーブ装置 2の途中にあるスレー
ブ装置 2a を一旦撤去して、そこを共通信号路線 3a で
接続した場合には、欠番が得られ、該撤去した所に、新
たなスレーブ装置 2b を設置した場合には、該共通信号
線路 3aが、一旦切断されるので、該増設スレーブ装置
2b よりマスタ装置 1側のスレーブ装置 2のアドレスが
最後のアドレスとなり、従属接続されているスレーブ装
置2の最後にスレーブ装置 2c を増設した場合には、文
字通り、増設前の最終位置にあるスレーブ装置 2のアド
レスが最後のアドレスとなる) し、該欠番のアドレス,
或いは、最後のアドレスの次のアドレスを、前述のアド
レス設定コマンドを用いて、送出することにより、該増
設されたスレーブ装置 2b,又は、2cに、該アドレスが設
定され、上記アドレス割り付け要求信号を“オフ”と
することで、上記のように、全スレーブ装置 2,2a,2cを
クリアして再割り付けを行うことなく、既存のスレーブ
装置 2のアドレスとは異なるアドレスを割り付けること
ができる。
In the above embodiment, the slave device 2
In the case where a is added or removed, the addresses of all the slave devices 2 and 2a are cleared and reassignment is described. For example, the added slave device 2a
In the case of the removal (or failure) of the occurrence of the address assignment request signal from the slave device 2a, the slave device 2a stops responding to the call of the master device 1 and the addresses of all the slave devices 2 and 2a To recognize the missing or last address (for example,
If the slave device 2a in the middle of the cascaded slave device 2 is temporarily removed and connected there by the common signal line 3a, a missing number is obtained, and a new slave device 2b Is installed, the common signal line 3a is temporarily disconnected, so that the
If the address of the slave device 2 on the master device 1 side is the last address from 2b and the slave device 2c is added at the end of the slave device 2 connected in cascade, literally, the slave device at the last position before the expansion 2 is the last address), and the missing address,
Alternatively, by sending the next address of the last address using the above-mentioned address setting command, the address is set in the added slave device 2b or 2c, and the address allocation request signal is sent. As described above, an address different from the address of the existing slave device 2 can be assigned without clearing and reassigning all the slave devices 2, 2a, 2c as described above.

【0038】又、撤去の場合には、上記アドレス割り付
け要求信号が認識されないこと, 或いは、前述のよう
に、マスタ装置 1からの呼びかけに対して応答がないこ
とで、該撤去が認識できるので、全スレーブ装置 2のア
ドレスをセンスして、欠番を認識するのみで、特に、何
もしないことでも、システムとしての稼働を続けること
ができる。
In the case of removal, the removal can be recognized because the address assignment request signal is not recognized or, as described above, there is no response to the call from the master device 1. Only by sensing the addresses of all the slave devices 2 and recognizing the missing numbers, the operation as a system can be continued even if nothing is performed.

【0039】上記で説明した、全スレーブ装置 2,2b,又
は、2cのアドレスをクリアして、再割り付けを行うと、
各スレーブ装置 2,2b,又は、2cのアドレスと、設置位置
とを対応付けることができるので、障害時のスレーブ装
置 2の認識に便利であるというメリットが得られるが、
絶対的な条件ではないことはいう迄もないことである。
When the addresses of all the slave devices 2, 2b, or 2c described above are cleared and reassigned,
Since the address of each slave device 2, 2b, or 2c can be associated with the installation position, there is an advantage that it is convenient to recognize the slave device 2 at the time of failure,
Needless to say, it is not an absolute condition.

【0040】尚、上記活性増設・撤去作業において、共
通の信号線路 3,3a の接続替えに伴い、マスタ装置 1か
らの送信線(S) に、雑音により、種々の擬似コマンドが
発生することが考えられる。
In the above active extension / removal work, various pseudo commands may be generated due to noise on the transmission line (S) from the master device 1 due to the connection change of the common signal lines 3 and 3a. Conceivable.

【0041】この擬似コマンドの内、センスコマンド,
アドレスクリアコマンド等については、特に、問題はな
いが、例えば、上記従来技術, 及び、本実施例の説明で
は触れなかった切り離しコマンドが発生すると、該共通
の信号線路 3,3a の接続替えを行った以降に接続されて
いるスレーブ装置 2が切り離されてしまい、以後、如何
なるコマンドも受付ることができなくなる問題が生じる
恐れがある。
Among the pseudo commands, a sense command,
Although there is no particular problem with the address clear command and the like, for example, when a disconnection command not mentioned in the above-described prior art and the description of the present embodiment occurs, the connection of the common signal lines 3 and 3a is switched. After that, the connected slave device 2 is disconnected, and there is a possibility that a problem may occur that no command can be accepted thereafter.

【0042】この場合には、ハードウェア的には、例え
ば、該活性増設・撤去作業時での上記信号線路 3,3a の
挿抜を検出する回路を設け、該信号線路 3,3a が挿抜さ
れたことを検出して、マスタ装置 1からの入力回路を閉
塞するようにして、上記擬似コマンドが入力されないよ
うにする等して対処することができる。
In this case, in terms of hardware, for example, a circuit for detecting the insertion / removal of the signal lines 3, 3a during the active extension / removal work is provided, and the signal lines 3, 3a are inserted / removed. By detecting this, the input circuit from the master device 1 may be closed to prevent the pseudo command from being input, and the like.

【0043】又、システムコンソールでの運用監視機構
で、該スレーブ装置 2の接続状態が異常であることを認
識した時点で、該増設・撤去作業を行った箇所の以降に
接続されているスレーブ装置の電源を再投入する等し
て、初期状態に戻すことにより、上記アドレス割り付け
要求信号を発生させることで、所期の状態にすること
が可能であるので、本発明を妨げる要因となることはな
い。
Further, when the operation monitoring mechanism on the system console recognizes that the connection status of the slave device 2 is abnormal, the slave device connected after the place where the addition / removal work was performed is performed. It is possible to return to the initial state by, for example, turning on the power supply again, thereby generating the address allocation request signal, thereby achieving the expected state. Absent.

【0044】[0044]

【発明の効果】以上、詳細に説明したように、本発明の
アドレス設定装置は、マスタ・スレーブの制御形態をと
り、マスタ装置に対して共通の信号線路に複数のスレー
ブ装置が接続される装置間接続方式をとるシステムにお
いて、各スレーブ装置から隣接するスレーブ装置に接続
される共通信号線路中に制御信号により信号線路の断・
接を行うスイッチ手段と、アドレスが設定されたとき
に、該スイッチ手段を接状態に駆動する制御信号発生部
と、アドレス設定部を持つスレーブ装置に、少なくと
も、アドレス未割り付け状態時にアドレス割り付け要求
信号を送出する要求信号発生部を設け、システム稼働
中に、マスタ装置が上記1つ又は複数個のスレーブ装置
からのアドレス割り付け要求信号を検出したとき、該
1つ又は複数個のスレーブ装置からのアドレス割り付け
要求信号が検出されている間、各スレーブ装置のアド
レス設定部に、互いに異なるアドレスを選択的に設定す
るようにしたものであるので、スレーブ装置の増減に伴
い、例えば、アドレスの再割り付けが人手を介在する事
なく処理でき、最近要求されることが多い活性増設・撤
去を行うことができる効果がある。
As described in detail above, the present invention
The address setting device has a master-slave control mode, and in a system in which a plurality of slave devices are connected to a common signal line with respect to the master device, a system is used to connect each slave device to an adjacent slave device. Disconnection of the signal line by a control signal in the connected common signal line
A switch unit for making contact, a control signal generating unit for driving the switch unit to a contact state when an address is set, and an address assignment request signal for at least a slave device having an address setting unit when an address is not assigned. the request signal generating unit for delivering the provided system operation
Wherein the master device is the one or more slave devices.
When an address allocation request signal from
Address assignment from one or more slave devices
While the request signal is detected , different addresses are selectively set in the address setting section of each slave device. Therefore, as the number of slave devices increases or decreases, for example, the reallocation of addresses is performed manually. Can be processed without intervention, and there is an effect that active expansion / removal often required recently can be performed.

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

【図1】本発明の構成を示す一実施例を示した図FIG. 1 is a diagram showing an embodiment showing a configuration of the present invention.

【図2】本発明によるスレーブ装置の増設・撤去時の動
作を説明する図
FIG. 2 is a diagram for explaining the operation when adding or removing a slave device according to the present invention;

【図3】従来のスレーブ装置間のアドレス設定方式を説
明する図
FIG. 3 is a diagram for explaining a conventional address setting method between slave devices.

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

1 マスタノード/マスタ装置 3,3a 共通信号線路, 又は、共通の信号線路 2 スレーブノード/スレーブ装置 2a,2b,2c 増設(撤去)されたスレーブ装置 11 アドレス設定指示部 12 応答検出部 13 インタフェース部 14 要求信号検出部 15 アドレスクリア指示部, 21,22 スイッチ 23 処理装置 24 制御信号発生部 25 送受信インタフェース部 26 アドレス設定部 27 要求信号発生部 28 アドレスクリア検出部 アドレス割り付け要求信号 アドレスのクリア指示 1 Master node / master device 3,3a Common signal line or common signal line 2 Slave node / slave device 2a, 2b, 2c Slave device added (removed) 11 Address setting instruction unit 12 Response detection unit 13 Interface unit 14 Request signal detector 15 Address clear instructor, 21, 22 Switch 23 Processor 24 Control signal generator 25 Transmit / receive interface 26 Address setting unit 27 Request signal generator 28 Address clear detector Address allocation request signal Address clear instruction

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 マスタ装置と信号線路により接続された
複数のスレーブ装置にそれぞれ設けられるアドレス設定
装置であって、各スレーブ装置からのアドレス要求信号を受信する手段
と、各スレーブ装置のアドレスをクリアするアドレスク
リア指示を送信する手段と、各スレーブ装置に設定する
アドレスを送信する手段とを備えたマスタ装置に対し
て、 アドレス未割り付け状態時にアドレス割り付け要求信号
を送出する手段と、前記アドレス割り付け要求信号を
している間は、隣接するスレーブ装置との信号線路を
断状態に制御する手段と、 マスタ装置から送信されてきたアドレスを設定する手段
と、 マスタ装置から送信されてきたアドレスクリア指示によ
り前記アドレス設定手段のアドレスをクリアする手段
を備え、 前記マスタ装置に接続されたスレーブ装置の少なくとも
1つがアドレス未割り付け状態となった場合に、該スレ
ーブ装置内のアドレス設定装置からのアドレス割り付け
要求信号を受信したマスタ装置が送信するアドレスクリ
ア指示と、それに続くアドレスを受信することで、スレ
ーブ装置のアドレスを再設定する ことを特徴とするアド
レス設定装置。
1. An address setting device provided in each of a plurality of slave devices connected to a master device by a signal line, and receiving an address request signal from each slave device.
Address to clear the address of each slave device.
A means for transmitting a rear instruction and setting for each slave device
To a master device having means for transmitting an address.
Te, means for sending an address allocation request signal when the address unassigned state, sending the address assignment request signal
While being out above, and means for controlling the signal line of the adjacent slave device to the cross-sectional state, means for setting the address transmitted from the master device, the address clear instruction that is transmitted from the master device Means for clearing the address of the address setting means ;
And at least one of the slave devices connected to the master device.
If one of the addresses becomes unassigned, the thread
Address from the address setting device in the slave device
The address clear transmitted by the master device that received the request signal
By receiving an instruction and the address following it,
Address setting apparatus characterized by resetting the address of the over blanking apparatus.
JP3000443A 1991-01-08 1991-01-08 Address setting device Expired - Fee Related JP2616503B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3000443A JP2616503B2 (en) 1991-01-08 1991-01-08 Address setting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3000443A JP2616503B2 (en) 1991-01-08 1991-01-08 Address setting device

Publications (2)

Publication Number Publication Date
JPH04242851A JPH04242851A (en) 1992-08-31
JP2616503B2 true JP2616503B2 (en) 1997-06-04

Family

ID=11473947

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3000443A Expired - Fee Related JP2616503B2 (en) 1991-01-08 1991-01-08 Address setting device

Country Status (1)

Country Link
JP (1) JP2616503B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008011041A (en) * 2006-06-28 2008-01-17 Fujitsu Ltd System information setting method and apparatus
JP5224463B2 (en) * 2009-03-11 2013-07-03 株式会社メガチップス Communication module, communication system and sensor system
JP2011024081A (en) * 2009-07-17 2011-02-03 Mega Chips Corp Communication module, communication system, sensor system and power monitoring system
JP5213834B2 (en) * 2009-11-12 2013-06-19 株式会社日立産機システム Serial communication device, station number automatic setting method and automatic coordinate detection method for multiple slave stations in serial communication device
WO2012176821A1 (en) * 2011-06-21 2012-12-27 パナソニック株式会社 Measuring system
US8645580B2 (en) * 2011-09-06 2014-02-04 Semiconductor Components Industries, Llc Circuit and electronic module for automatic addressing

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0237451A (en) * 1988-07-27 1990-02-07 Mitsubishi Electric Corp Terminal address determining system for external input/ output device
JPH0769883B2 (en) * 1988-10-14 1995-07-31 日本電気株式会社 Equipment control system

Also Published As

Publication number Publication date
JPH04242851A (en) 1992-08-31

Similar Documents

Publication Publication Date Title
US6622195B2 (en) Interface switching apparatus and switching control method
EP0482957B1 (en) Method of data communication in an automobile communication network
JP3123417B2 (en) Communication method in small-scale network and control device and subordinate device applied to the communication method
JP2616503B2 (en) Address setting device
EP0739112A2 (en) Electronic devices and operating mode control thereof
JP3461954B2 (en) Data transmission equipment
JPH04299743A (en) Computer network system
JP3452702B2 (en) Building group management device
WO2022064654A1 (en) Redundant system, control method, and program
WO2021234819A1 (en) Expansion base unit, control device, control system, and control method
KR102147788B1 (en) Control apparatus and method for solid state relay using rs-232c connector
JP3122682B2 (en) Data transceiver
JPH07101475B2 (en) Disaster prevention system
JPS6085644A (en) Method for resetting local network system
JP2606130B2 (en) Loop network
JP2006106833A (en) Backup device for main controller in monitoring board and tunnel disaster prevention facility
JP3462756B2 (en) Elevator transmission control device
JPH07125941A (en) Elevator control system
JPS6336701B2 (en)
JPS61131643A (en) Node of interface bus
JPH01111248A (en) Constitution changing system for data processing system
JPH06225031A (en) Multiplex transmission system
JPH06217195A (en) Video equipment controller
JPH0738655B2 (en) Preliminary identification method of availability of access to line processing unit by standby processor
JPH01205253A (en) Interface circuit

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19970114

LAPS Cancellation because of no payment of annual fees